+ Start a Discussion
Alaric WimerAlaric Wimer 

How can I run a mass update on all opportunities, just to fire process builder?

I had to adjust a formula for one of my formula fields. However, I also have a field that is set to match the value of the formula field. The field is set via process builder.
 
After I updated the formula, the second field only updates after an update. (Edit => Save)
 
Is there any way I can perform this action (Edit => Save) on all Opportunities at once?
Best Answer chosen by Alaric Wimer
Boss CoffeeBoss Coffee
You could try the following in Developer Console => Debug dropdown => Open Execute Anonymous Window, then paste the following to fetch all Opportunities and run update on all Opportunity records.
List<Opportunity> opps = [SELECT Id FROM Opportunity];
update opps;

All Answers

Boss CoffeeBoss Coffee
You could try the following in Developer Console => Debug dropdown => Open Execute Anonymous Window, then paste the following to fetch all Opportunities and run update on all Opportunity records.
List<Opportunity> opps = [SELECT Id FROM Opportunity];
update opps;
This was selected as the best answer
Alaric WimerAlaric Wimer
Thank you! Is there a max amount of Opportunity records that this will work for? 
Boss CoffeeBoss Coffee
The update dml statement has a process limit of 10,000 records.
Alaric WimerAlaric Wimer
Ok great, how about Process Builder? All of these opps will enter process builder when the update executes, if I'm not mistaken.
Boss CoffeeBoss Coffee
Process Builder should be able to handle bulk records. I'll link the documentation for both Transactions and Processes.

Salesforce Documentation - Apex Governor Limits (https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_apexgov.htm)
Salesforce Documentation - Process Limits (https://help.salesforce.com/articleView?id=process_limits.htm&type=5)
New User 77New User 77
Process Builder should be able to handle bulk records. I'll link the documentation for both Transactions and Processes.

Salesforce Documentation - Apex Governor Limits (https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_apexgov.htm)
Salesforce Documentation - Process Limits (https://help.salesforce.com/articleView?id=process_limits.htm&type=5)

Whatsapp Status in Hindi (#)

Love Status in English (https://gohappyfriendsday.blogspot.com/2019/08/love-status-in-english-for-whatsapp.html)
New User 77New User 77
https://gohappyfriendsday.blogspot.com/2019/09/whatsapp-status-in-hindi.html
Tech Mint 4Tech Mint 4
Best Tech Information Sites TechTanker (https://techtanker.com/)
Tech Mint 4Tech Mint 4
Here is the best animenova (https://techtanker.com/animenova/)alternatives for you.
new user 81new user 81
Best shayari in hindi  (https://www.shayariblogs.com/)