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
Pavan kumar 546Pavan kumar 546 

Why does trigger.new and trigger.old return a list?

Why does trigger.new and trigger.old return a list?
SonamSonam (Salesforce Developers) 
Pavan,

To be able to accept bulk record inserts and updates, trigger.new is designed to return a list that can be iterated over by a for loop to work on each new record coming thru.