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
cmcc333cmcc333 

Approval process - Locking child objects

Hi

 

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?

 

Thanks

Chris

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

 

Thanks

Bing