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
Rohit Prasanna ChandramouliRohit Prasanna Chandramouli 

Process Builder - error

Hello,

My Organization uses a process builder to update an object when the opportunity page is saved. But only the first 50 records are getting updated. Is there a way to update all records in an opportunity using the process builder or a flow application?
VinayVinay (Salesforce Developers) 
Hi Rohit,

How do you update records using process builder and do you see any error message after updating 50 records?  Check below examples to update records using flow.

https://help.salesforce.com/s/articleView?id=sf.flow_build_data_update.htm&type=5
https://admin.salesforce.com/blog/2022/automate-this-update-related-records-with-flow

Also going forward process builder will no longer be available and recommendation would be transitioning to flow.  Check below reference for same.

https://help.salesforce.com/s/articleView?id=000389396&type=1

Please mark as Best Answer if above information was helpful.

Thanks,
Rohit Prasanna ChandramouliRohit Prasanna Chandramouli
Hello Vinay,

Every time, the "Save" button is clicked, the process builder is triggered, and the records are updated. So, I have set the number of rows on a page to 50. When I hit the save button with all the rows (more than 50) shown on one page, I get a flow application error saying, "APEX CPU time limit exceeded".
VinayVinay (Salesforce Developers) 
You would need to debug process builder and see why you see CPU time limit exceeded error.

Reference:
https://help.salesforce.com/s/articleView?id=000387833&type=1

Also check details on process builder debugging.

https://jayakrishnasfdc.wordpress.com/2020/02/23/best-way-of-process-builder-debugging-in-salesforce/

Thanks,