Activity Forums Salesforce Discussions What is the difference between before trigger and after trigger in Salesforce?

  • What is the difference between before trigger and after trigger in Salesforce?

  • Pooja

    Member
    February 13, 2020 at 12:40 pm

    What is the difference between before trigger and after trigger in Salesforce?

  • Kirandeep

    Member
    February 13, 2020 at 2:48 pm
    1. Before triggers are used to update or validate record values before they're saved to the database.
    2. After triggers are used to access field values that are set by the system (such as a record's Id or LastModifiedDate field), and to affect changes in other records.
Viewing 1 - 2 of 2 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos