+ Start a Discussion
Vijay ummedaVijay ummeda 

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 


Thanks,
Vijay.
 
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.

Thanks.
Vijay ummedaVijay ummeda
Hi ANUTEJ,

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 .
Thanks,
Vijay.