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
LAMCORPLAMCORP 

Update all child records lookups associated with a change to the parent lookup

Dear all,

 

Does anyone know if it is possible to update all child records associated with a change to the parent?

 

EG:

One Account called: Monster Toys LTD - with a lookup field that looks up to the Opportunitity object

 

100 Contacts related to the Monster Toys LTD - with a lookup field that looks up to the Opportunitity object

 

I would like that when the Monster Toys LTD opportunity lookup is changed it will also change all the related Contact record lookups also.

 

Any help and code example would be so helpful and appreciated. Many thanks in advance.