Activity Forums Salesforce® Discussions Updating Rollup Summary field executes the parent object trigger?

  • Surbhi

    Member
    June 1, 2016 at 8:06 am

    Hi Himanshu,

    Whenever the child record's value change, perform calculations and updates the roll-up summary field on the parent record. Parent record goes through save procedure. So, updating the child inputs to a roll-up summary field can cause a trigger on the parent object to fire.

    Thanks

  • shariq

    Member
    August 9, 2017 at 12:18 pm

    Hi Himanshu,

    Update Trigger is fired when there is any change in the field of that sobject, so whenever child updates, the roll up summary field on parent sobject updates which will fire the trigger.

    Hope this helps.

  • Guha

    Member
    September 25, 2017 at 3:03 am

    Yes - Rollup summary field will fire the trigger. Rollup summary field update happens via a DML operation internally, so it does fire Workflow, Process Builder, and triggers associated to that object.

    To avoid this,  exclude this rollup field in your trigger exclusively so that the trigger is not fired when it hits the field update.

  • Satya

    Member
    January 9, 2018 at 9:04 am

    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.
    So, updating the child inputs to a roll-up summary field can cause a trigger on an object to fire.

Log In to reply.

Popular Salesforce Blogs