Thursday 26 February 2015

What is the Difference Between Trigger.newMap and Trigger.oldMap?

Ans:
Trigger.newMap: A map of IDs to the new versions of the sObject record.This map is only available in before update, after insert and after update triggers.

Trigger.oldMap: A map of IDs to the old versions of the sObject records. This map is only available in update and delete triggers.

No comments:

Post a Comment