+ Start a Discussion
ashokdddashokddd 

what is the difference between custom settings and custom labels???

ForceMantis (Amit Jain)ForceMantis (Amit Jain)
Custom setting is a special type of custom object(table in relatinal database). Custom setting are normally used to story application configuration data that is use across application. Custom setting are accessible only to system administrators. Refer online help (https://help.salesforce.com/apex/HTViewHelpDoc?id=cs_about.htm) for more details.

Custom Lables are used mainly if you want to support multiple languages in your application. Using custom labels you will define translatable block of messages and give them a specific name. In your code you will use that identifer instead of actual message. To support multiple language you can translate a custom label in respective languages. At the time of UI rendering salesforce UI engine will automatically display appropriate language message based on user's language preferences. Refer online help (https://help.salesforce.com/HTViewHelpDoc?id=cl_about.htm&language=en_US) for more details.

If you an any specific query about these let me know.


 
Subrat kumar RaySubrat kumar Ray
Custom Setting are objects to store data, for retrieving data from those we do not to query them. We can directly access them using methods like getAll() and getValues().
Custom Labels are helpful in multilanguage support app. You can also use this to avoid hard-coding in the code.
Sagar PareekSagar Pareek
Custom settings are used to store the custom configuration of your application depending upon your business process.
Custom Labels are used to label static content on your visualforce pages to allow multi language support.