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
Ker Vin.ax1237Ker Vin.ax1237 

Bulk updates on triggers

I'm just starting out on apex coding and I understand that triggers aren't actually executed per record, but in batches. I just wanted to confirm something


 for (Task tasksToUpdate:


Does the above for statement sufficiently capture all tasks that might execute the trigger at the same time? Or do I have to do something like an array assignment to update this? Can anyone provide a sample?


Yes, is automatically populated with all the records that are being updated.