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
Paul S.Paul S. 

"Updating" records to cause trigger to fire

Hi everyone - I have a set of about 13,000 records for which I want to update a field using a trigger that I've recently deployed.  Are their any best practices that dictate the best way to "update" that many records?
Ashish_Sharma_DEVSFDCAshish_Sharma_DEVSFDC
Hi Paul S.,

If your trigger code is written in such a way to handle bulk operations ,you can update any number of records in one call .
Anyway default batch size is 200 for trigger.

Please look into below link to bulkify your code if it is not.
https://developer.salesforce.com/page/Best_Practice%3A_Bulkify_Your_Code

Let us know if it helps you.