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?

    Posted by Pooja on February 13, 2020 at 12:40 pm

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

    Kirandeep replied 4 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • 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.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos