+ Start a Discussion
Azhar Iqbal 4Azhar Iqbal 4 

How to add configuration data in Salesforce?

I want to access a static value in apex which will be different for UAT and Prod. 
e.g: i want to send an email to ABC in UAT but in prod i want the same email to be sent to PQR. I want to provide this email to APEX using some configuration file, the way we do in Java or .net using web.xml or config.xml.
Do we have this kind of option in Salesforce?
balaji Jayararmanbalaji Jayararman
You can use custom labels to store static value and access the label value in apex code using the below statement: