Activity Forums Salesforce® Discussions Why we avoid DML query in "before" trigger in Salesforce? Reply To: Why we avoid DML query in "before" trigger in Salesforce?

  • shariq

    Member
    September 22, 2018 at 3:23 am

    Hi,

    In Before Triggers, actions are being performed before you commit the record to the database. This is where you usually do validations or updates to the same object. You can skip the DML operations here as whatever values you give in your code is automatically assigned to that record.

    Hope this helps.