Sunday, November 26, 2017

A brief introduction to Salesforce !

If you are working in IT industry or rather any industry, you must have heard of the name Salesforce.
But what exactly is Salesforce? Is it a Software to use? A platform to code? Or what?

Let's demystify this, if you don't already know.

As Salesforce describes itself, it is the innovative company behind the world's #1 CRM.

If you are into Sales or Marketing, you can very well answer, what on Earth is a CRM.
For novice, CRM is Customer Relationship Management, using which you can easily manage your customers, potential customers, your partners, etc.
I know you must be like, Ahh! that's very explanatory. 😉 But don't worry I'll cover Salesforce as a CRM, in my next article. This definition should suffice for now.

Coming back to Salesforce !!
If Salesforce is just a CRM, what's so cool about it? What the fuss is all about?

It's not that Salesforce invented The CRM. CRM solutions dates back to the early 1970's, when these were just stand alone Mainframe systems. Then, came the revolution in the technology which made it possible to connect every system to every other system. Every Organization started moving its resources to Cloud, instead of relying on the home grown network.

Mr. Marc Benioff dreamt of moving the CRM solution onto the Cloud, and BOOM ! Salesforce was born.

Salesforce moved the CRM entirely on Cloud and provided it to the Organizations as per their need. Benefits of being on Cloud are manifold:

  • You no longer need to worry about the hardware and the software.
  • You can leave the worry of scalability to Salesforce.
  • You pay as much you use. Salesforce charges you on per licence basis.
  • If any new technology is emerging out, Salesforce will upgrade itself to provide you the benefits of it.  


Lastly, Is Salesforce just a cloud base CRM?

The answer is a big NO !
It is much more than that just a CRM. Salesforce provides you a complete cloud based platform to develop web-applications. Force.com is the name given to the Platform.

You can use Force.com either to extend the Salesforce CRM or to develop an entirely new application.

In addition to that Salesforce also has its own marketplace (Appexchange) similar to Google's Play Store and Apple's App Store, where you can find useful apps built on Force.com platform. Really cool, isn't it?


In the next blog, I'll cover the basic components of a CRM. Stay tuned !! ☺

Learn Javascript Remoting in Salesforce - with Example


What is Javascript Remoting?

Javascript Remoting is a way to call Apex Controller methods from Javascript (written on Visualforce page..). Unlike ActionFunction, Javascript Remoting allows us to call controller methods, without having to transfer the complete viewstate of the page.
As it does not transfer the ViewState, it can also save your Visualforce page from reaching the ViewState limit.

Sample Code
Let’s jump straight to the sample code which itself should be self explanatory.
Controller Class:
public class TestJSRemoting {
          @RemoteAction
          public static Account searchAccounts(String name){
          account = [SELECT Id, Name, Phone  FROM Account WHERE Name = :accountName limit 1];
        return account;
}
}

VF page:
<apex:page controller=”TestJSRemoting”>
          <script>
                  
          </script>
          <apex:pageBlock>
                   <input type=”text” value=””>
                   <button type=”button”>Search</button>
          </apex:pageBlock>
</apex:page>