Trigger.old: Returns a list of the old versions of the sObject records.
Note that this sObject list is only available in the update and delete triggers.
Trigger.oldMap: A map of IDs to the old versions of the sObject records.Note that this map is only available in the update and delete triggers.
Let say you have a custom object Account.
Trigger.old means it is a List<Account>
Trigger.oldMap means it is a map<Id,Account>
Apex trigger
Note that this sObject list is only available in the update and delete triggers.
Trigger.oldMap: A map of IDs to the old versions of the sObject records.Note that this map is only available in the update and delete triggers.
Let say you have a custom object Account.
Trigger.old means it is a List<Account>
Trigger.oldMap means it is a map<Id,Account>
No comments:
Post a Comment