May 2019
Intermediate to advanced
546 pages
12h 41m
English
This returns a map with the new version of the records. The index of the map is the ID of the record that is impacted by the trigger. This variable returns map<Id, SObject>, so if you want to use the properties of your specific object type, you need to cast your map into the specific map. This variable is available in the following circumstances:
Map<Id, Account> mapAccounts = (Map<Id, Account>) Trigger.newMap;
Read now
Unlock full access