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
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:
System.Label.<label_unique_name>