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
Ken Koellner 8Ken Koellner 8 

Firing Triggers from Process Builder and Workflow Field Updates.

Quesiton about save order.  This documentation is critical for understanding -- https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.htm

So I did an experiment.  I have a trigger on an object.  I put Process Builder process on the update that does an update record to set a field on the record.  When I update a record, a second DML fires and the trigger gets fired twice, once from the original update and once from my field update.

I did the same thing with workflow and my trigger only fired once.  Not sure if I did something wrong.  The document says that triggers are run again in both cases but it looked like my workflow field update worked.