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
Tony RissoneTony Rissone 

Change the the parent of a child record when a parent is updated.

For example.

I have data coming in with a document number of ABC123 (objectX). What happens each time that document is updated on another system it creates a new record on ours. So everyone time new information comes in a new (objectX) is created. The changes that are made are saved in a record history (objectY) , BUT the record history does not migrate with each new record that comes in. It only shows the changes that where made from the previous parent to the new parent.

The old records are then listed as 'Inactive' in another field and the new record is 'active'.

So, based on the document number ABC123 (this never changes) is it possible to move child records to the new active record. 
Raj VakatiRaj Vakati
Yes .. But you need to write the trigger on the Object X