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
Stefanos.ThomaidisStefanos.Thomaidis 

Picklist item on related object gets the value of a picklist item from parent custom object.

Greetings,

 

I am trying to figure out the correct code for a picklist item on a related object to get the value of a picklist item from its parent custom object.

When the value changes and gets a specific string, then I have to have a change on the corresponding picklist in the related object.

 

Thanks for passing by,

MandyKoolMandyKool

Hi,

 

You can write a trigger on your "Parent" object (after update/after insert). In this trigger you can check if the value of a picklist is changed. If yes you can copy the same value to all the related object records.

 

Cheers!!