+ Start a Discussion
rao venkyrao venky 

Custom setting

Can anybody send the Custom setting Real time scenario?


Below is real time scenario for custom settings.

- Suppose we need to integrate salesforce with any third party database(Netsuite,QuickBook) ok integrate with any third patry tool(SendGrid,Mandrill) at that time we are doing API request from apex class where we need to send request with the third party database/tool credentials.

- Here we can store those third party database/tool credentials in custom settings like Create a custom setting with two custom fields Username and Password. Use that custom settings in apex calss to send API request with username and password. That way in future if we need to update credentials, do not need to update apex code. We can change those credentials in custom settings.

Thanks & Cheers,
Jigar (pateljb90@gmail.com)

Ajay K DubediAjay K Dubedi
Hi Rao,
If you want to store some data which will be used in your class frequently, here custom settings will be used. Suppose we have a requriment that we have sites and their divisions and we want to pupulate those divisions dynamically in our page corresponding to their sites.For that we create custom setting named 'site' which have a field division where we fix the values. Now we populate those divisions from custom settings dynamically.  Now if some more sites are require to be added than we should not will anything in our code just add those sites in custom settings.     
 To know more about custom settings please follow the link:-http://https://help.salesforce.com/apex/HTViewHelpDoc?id=cs_about.htm&language=en (http://https://help.salesforce.com/apex/HTViewHelpDoc?id=cs_about.htm&language=en)