Interview Questions   Tutorials   Discussions   Programs   

Apex - What is difference between Trigger.new and Trigger.old?




837
views
asked kiran-57 December 9, 2013 06:28 AM  

What is difference between Trigger.new and Trigger.old?


           

1 Answers



 
answered By   0  
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.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert