What is the value of the Trigger.old context variable in a before insert trigger?

What is the value of the Trigger.old context variable in a before insert trigger?
A . list of newly created sObjects without IDs
B . Undefined
C . null
D . An empty list of sObjects

Answer: C

Explanation:

In a before insert trigger:

Trigger.old is null.

There is no existing record in the database to reference.

Why Not Other Options:

Option A: Describes Trigger.new.

Option B: The variable is defined but has a null value.

Option D: Trigger.old is not an empty list; it is null.

Reference: Trigger Context Variables:

"In insert triggers, Trigger.old is null because the records are new."

― Apex Developer Guide: Trigger Context Variables

Latest DEX-450 Dumps Valid Version with 456 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments