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
Frank 2UFrank 2U 

Does the Id value of a record being updated stay the same?

In a before update trigger with Trigger.new and Trigger.oldMap, do the following three groups contain identical values?
  1. The element Ids of Trigger.new
  2. The Ids in Trigger.oldMap.keySet()
  3. The element Ids of Trigger.oldMap.values()
Best Answer chosen by Frank 2U
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi Frank

Yes the Id remain the same.As it is a unique Identification field of a record so it is not changed.

Cheers!!!