SELF REFERENCE FROM TRIGGER Exception in Salesforce with Roll-Up Summary

931 views Jun 15, 2022

As per the order of execution in Salesforce, "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." It will do the Save Procedure again due to Roll-Up calculation. So, in before trigger context, avoid updating records which will recalculate the Roll-Up calculation.

#Internet Software