Skip to main content
Azhar Iqbal perguntou em #Email
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 resposta
  1. 22 de fev. de 2018, 08:18
    Hi Azhar,

     

    You can use custom settings :

     

    https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_customsettings.htm

     

    I would encourage you to post your question on Developer Community where you have a better chance of getting an issue resolved. Developers around the world with great customization experience will help you to quickly resolve your issues.

     

    This community is for Configuration and Admin questions which doesn’t require custom coding. 

     

    Salesforce Developer Forum:  https://developer.salesforce.com/forums

     

    StackExchange:  http://salesforce.stackexchange.com

     

     
0/9000