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
Saru VadlamudiSaru Vadlamudi 

Time dependent workflow for email alert

i have time dependent workflow action for email alert which will trigger on before end date of 180 days .
The requirement is to customize the from email address in email alert so i would be write code to convert workflow logic into apex logic.
Please suggest me how can i achive this functionality.
sfdcsushilsfdcsushil
You may consider using Scheduled Apex. You will have to store job id on the object once it is scheduled. If any parameter on the object changes, you will have to delete that job using that id and recreate it.