May 2019
Intermediate to advanced
546 pages
12h 41m
English
This returns a list with the old version of the records. This variable returns a list of sObjects, so if you want to use properties of a specific object type (such as Account), you need to cast your list to a list from the specific object. This variable is only available in the following contexts:
List<Account> lstAccounts = (List<Account>) Trigger.old; // the list 'SObject' is casted to a list with 'Account' records
Read now
Unlock full access