You need to sign in to do that
Don't have an account?

What records does trigger.new get?
What does Trigger.new list get when a trigger is fired?Does it get the records which caused the trigger to fire?
You need to sign in to do that
Don't have an account?
<pre>
// Trigger.new will contain one record
insert new Case();
// Trigger.new will contain three records
insert new List<Case>{ new Case(), new Case(), new Case() };
</pre>
All Answers
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 info go through this link:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_context_variables.htm
Trailhead Unit
https://trailhead.salesforce.com/en/modules/apex_triggers/units/apex_triggers_intro
Regards,
Pawan Kumar
<pre>
// Trigger.new will contain one record
insert new Case();
// Trigger.new will contain three records
insert new List<Case>{ new Case(), new Case(), new Case() };
</pre>