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

Trigger to update the child object details from parent object

Hi Team,

I have a requirement for the below  to acheieve it using trigger
contact is the parent of account  having master detail relationship.
account is the parent of opportunity.
copy the opportunity name  field of opportunity from the conatct object 

ANUTEJANUTEJ (Salesforce Developers) 
Hi Vijay,

Can you elaborate on the scenario with details and with an example so that we can check and respond back.

Looking forward to your response.


Below is my requirement .

Conatact object is the parent of account object which is having master detail relationship and contact object has custom filed contactopportunity__name.
account object is the parent of opportunity object which are havig master detailrelationship 
My requirment is to update the  opportunity_name field on  opportunity object whenever  the contact object filed(contactopportunity__name) also is updated 

Please let me know if you still need any more details .