+ Start a Discussion
sandeep@Salesforcesandeep@Salesforce 

Master Object's Trigger executes on detail object's trigger execution ?

Is there any concept that on Execution of insert/update/delete Trigger on detail object, their Master Obejct's trigger get executed ? ( Even we do not Apply
any DML on Master Object in detail's trigger)

Best Answer chosen by Admin (Salesforce Developers) 
AdrianCCAdrianCC

Yes, if the master has a rollup to the detail. http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers_order_of_execution.htm

 

If the record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the parent record. Parent record goes through save procedure.
If the parent record is updated, and a grand-parent record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the parent record. Grand-parent record goes through save procedure.

 Is this your case?

 

Thank you,

Adrian

 

 

All Answers

AdrianCCAdrianCC

Yes, if the master has a rollup to the detail. http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers_order_of_execution.htm

 

If the record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the parent record. Parent record goes through save procedure.
If the parent record is updated, and a grand-parent record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the parent record. Grand-parent record goes through save procedure.

 Is this your case?

 

Thank you,

Adrian

 

 

This was selected as the best answer
sandeep@Salesforcesandeep@Salesforce

Thanks Adrian for your answer.