Skip to main content
Ruchi Tiwari (Ruchi Tiwari) ha fatto una domanda in #Apex
Can anyone explain the difference between Trigger.new & Trigger.old with Example.
1 risposta
  1. 29 mag 2022, 06:16

    Hey 

    Trigger.new : Returns a list of the new versions of the sObject records. Note that this sObject list is only available in insert and update triggers, and the records can only be modified in before triggers.

     

     Trigger.old : Returns a list of the old versions of the sObject records. Note that this sObject list is only available in update and delete triggers.

     

    For more detail follow below link:

    http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers_context_variables.htm

     

    Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

    Thank you,

    Priya Ranjan

0/9000