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
joey_hoey19joey_hoey19 

Code to configure Email Alert metadata

I am writing apex code that implents SandboxPostCopy so that I can automatically set up new and refreshed sandbox with code that is run via SandboxPostCopy.

One of things I want to do is to change the metadata configuration that are set up in Workflow Email alerts (e.g. the "From Email Address" in the email alert). 

Is it possible and if so how can I approach this via code? Thanks.
NagendraNagendra (Salesforce Developers) 
Hi Joey,

May I suggest you please check with below link from the success community which will point you in the right direction for the above issue. Hope this helps.

Thanks,
Nagendra