Skip to main content
Azhar Iqbal a posé une question dans #Salesforce Developer
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?
1 réponse
  1. 22 févr. 2018, 10:04
    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>
0/9000