+ 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.