function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Joseph KennedyJoseph Kennedy 

Trigger context variables - What the Versions?

Hey SFDC Devs, 

I am starting out on my Dev journey and I am taking a Dev 1 course on Udemy and I just made it to triggers. 

We are discussing trigger conext variables and I think I almost get it. 

The one item of confusion that I was wanting some clarifcation and coaching on is ther verbiage of "Versions" in the context variable langauge. 

For example, in this knowledge article:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_context_variables.htm#!

trigger.new states that it returns all new versions of the sObject records. Why use the word version there and not just say "returns all new sObject records from the object the trigger is referencing". 

Any insight here would be greatly appreciated. 
Raj VakatiRaj Vakati
Dnt Confure with the version .. 

When salesforce say new versoin of the data mean , the data whihc you edit and not saved to the data base yet // 
When salesforce say old version , the data is coming from the data base ..
trigger.new --> Returns the new version 
trigger.old  --> Returns the old version