function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
force noviceforce novice 

Custom Settings & Labels

What is the purpsoe of custom settings & labels?

Best Answer chosen by force novice
RockzRockz

 

Hi ..

 

Hope this will help :

 

Custom settings and labels give a lot of flexibility to your program. Instead of hard coding you can make your program get the value from custom settings and you can edit the custom settings through point and click and it would change the result of your program without making you edit/compile your apex code. Eg. you can store WS end point URL in every environment you can change the URL in custom settings and they would point to different sandboxes or Prod instance. Or else you have to hardcode it in the program and you have to edit it everytime you want to switch your webservice environment. You don't have to query for custom settings or labels.

this is a good blog for this.

http://cloudnow.wordpress.com/2011/04/20/custom-settings-how-and-why/

 

Creating and Editing Custom Labels:http://help.salesforce.com/HTViewHelpDoc?id=cl_edit.htm&language=en_US

 

Defining Custom Settings:https://help.salesforce.com/apex/HTViewHelpDoc?id=cs_define.htm&language=en

 

 

Please accept my answer as a solution if my solution was helpful. This will make it available to others as a proper answer. If you felt that I went above and beyond please give me Kudos by clicking on on the star icon.

 

Thanks,

Cool Sfdc

 

All Answers

Subramani_SFDCSubramani_SFDC

This is very much helping you abt custom settings.....

 

https://help.salesforce.com/apex/HTViewHelpDoc?id=cs_about.htm&language=en

RockzRockz

 

Hi ..

 

Hope this will help :

 

Custom settings and labels give a lot of flexibility to your program. Instead of hard coding you can make your program get the value from custom settings and you can edit the custom settings through point and click and it would change the result of your program without making you edit/compile your apex code. Eg. you can store WS end point URL in every environment you can change the URL in custom settings and they would point to different sandboxes or Prod instance. Or else you have to hardcode it in the program and you have to edit it everytime you want to switch your webservice environment. You don't have to query for custom settings or labels.

this is a good blog for this.

http://cloudnow.wordpress.com/2011/04/20/custom-settings-how-and-why/

 

Creating and Editing Custom Labels:http://help.salesforce.com/HTViewHelpDoc?id=cl_edit.htm&language=en_US

 

Defining Custom Settings:https://help.salesforce.com/apex/HTViewHelpDoc?id=cs_define.htm&language=en

 

 

Please accept my answer as a solution if my solution was helpful. This will make it available to others as a proper answer. If you felt that I went above and beyond please give me Kudos by clicking on on the star icon.

 

Thanks,

Cool Sfdc

 

This was selected as the best answer