You need to sign in to do that
Don't have an account?
Ker 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: trigger.new)
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, trigger.new is automatically populated with all the records that are being updated.