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
rohit.mehtarohit.mehta 

Trigger oldMap

Hi,

I have an after update trigger on opportunity.
I wanted to know what fields are available on an object when I retrieve it from the Trigger.oldMap ?

What I observed is that all fields are not available on the object retrieved from the oldMap and wanted to understand the logic.

Thanks,
Rohit

JeremyKraybillJeremyKraybill
Rohit, what fields are missing? There is a list of documented fields that have this behavior in the Apex developer guide section called "Invoking Apex > Triggers > Fields that Cannot Be Updated by Triggers".