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

Approval process - Locking child objects



I have a custom object which has two child custom objects.  The relationship is Lookup, not Master-Detail.  These three objects are connected and can be viewed as a single part of a process.


I have an approval process on the parent object.  This locks the record.  However, the child records remain accessible.


Are there any methods that allow the automated locking of the child records off the back of the approval process on the parent?




Aiden ByrneAiden Byrne

Its not automatic, but you could do an explicit "select for update" for the lookup records.

Bing MaletzBing Maletz

Hi Aiden,

Could you please kindly provide detailed instruction how to this:

"you could do an explicit "select for update" for the lookup records."