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
Sonu06Sonu06 

Roollup summary

hi guys, my question is 'If roll up summary is updated , apex trigger will be fire or not??

Note- please dont share any link
Ramaguna PedapatiRamaguna Pedapati
To answer your question The Trigger will fire. The Document (document (https://help.salesforce.com/articleView?id=fields_about_roll_up_summary_fields.htm&type=5) ) mentions that the Parent record goes through save procedure meaning the trigger will fire on parent record if there is a modification on the field of a child record that feeds to the parent as a roll-up.
Deepali KulshresthaDeepali Kulshrestha
Hi Sonal,

Trigger will fire. write the trigger for that on the parent object and update child values or write a trigger in child and parent also update. A roll-up summary field calculates values from related records, such as those in a related list. You can create a roll-up summary field to display a value in a master record based on the values of fields in a detailed record. The detail record must be related to the master through a master-detail relationship. For example, you want to display the sum of invoice amounts for all related invoice custom object records in an account’s Invoices related list. You can display this total in a custom account field called Total Invoice Amount.
Changes to the value of a roll-up summary field can trigger assignment rules to run. If a roll-up summary field is part of the criteria in an assignment rule, the field’s new value is used to evaluate whether to reassign the record.
A roll-up summary field can trigger workflow rules and field validations. 
However, workflow rules and field validations do not fire when the following changes cause a mass recalculation of roll-up summary values:
Changing the roll-up summary definition (such as the object, function, or field being aggregated).
Changing the expression of a formula field referenced in a roll-up summary field.
Replacing picklist values for picklist fields referenced in the roll-up summary filter.
Changing picklist record type definitions.
Changing currency conversion rates.
Changing price book entries.


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com