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
Itayb34Itayb34 

Workflow Order of execution - Field Update vs Email

Just trying to be 100% sure in this case...I'm firing a workflow so when a checkbox is checked, a date field is updated and an email is send.
Regarding the order of the actions, I assume the field update will occur first, and then the email will be sent (I did some tests) - but is it correct in 100%?? If not, is there a way to do so? (I'm trying to avoid user receiving an email with Date before updating...)

Thanks!

Itay

sdouglassdouglas

Hi Itayb34,

 

The order of execution of workflow items is not gaurenteed.

 

If you want to be sure this field is always updated you will need to do it through APEX Trigger.

 

Feel free to reach out to me if you need help with this.

 

Thanks,

S

Itayb34Itayb34

I assume i can solve this with 2 workflows...

workflow 1 - when checkbox is True, update field and "Re-evaluate Workflow Rules after Field Change"

workflow 2 - when field not equals null, send email