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
Sean Fife 16Sean Fife 16 

When is the commit in a process builder

If you have a process builder flow that updates, for example, the same lead record several times.  Are those changes committed at the end of the process builder or after each change?

I'm inclinced to think it happens at the end of the process builder, but I wanted to know for sure.  I went through the documentation and didn't find the answer.
Akshay_DhimanAkshay_Dhiman
Hi Sean,

Yes, the field update will be at the end of the process builder. It depends on how you update the field. Let suppose you have 3 field to update in Account and you have clicked on the first field and saved it . For the second time , you again edit the field and save it in that case the process builder will execute 2 times. But in another case , if you click on the edit button and make changes in all the 3 fields and click on save button , then the process builder will execute only 1 time . Each process builder will execute at the end.

For More information Order of Execution , please refer to the below link :
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.htm   

Regards,
Akshay