+ Start a Discussion

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??
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.

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.

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