+ Start a Discussion
ai501.3910110299805757E12ai501.3910110299805757E12 

How to update child record by updating parent record

How to update child record by updating parent record 
eg:- If i update phone in contacts then it must update it in account .

How can i do it??
Subramani_SFDCSubramani_SFDC
U can use triggers

Ref : http://developer.force.com/cookbook/recipe/mass-updating-contacts-when-an-account-changes

Mark it as solution if it really helps u.


Regards,
Subramani
Trinay technology Solutions
Sagarika RoutSagarika Rout
We can achieve this  through trigger.
If you specificly want to update all childs , by updating parent record then write  a trigger on parent   and the trigger criteria should be after/before update.
Ramu_SFDCRamu_SFDC
Hi,

To update the parent object based on an event in child object you need to use relationship queries. Please find the below example that would help you in accomplishing your requirement http://salesforce.stackexchange.com/questions/23338/trigger-to-update-parent-object-value-with-child-value