Activity Forums Salesforce® Discussions When to use the Apex Trigger in Salesforce?

  • Anjali

    Member
    March 16, 2020 at 2:04 pm

    Apex triggers enable you to perform custom actions before or after changes to Salesforce records, such as insertions, updates, or deletions.

  • Clinto

    Member
    March 16, 2020 at 2:11 pm

    We can do things in Apex using Two ways
    1. synchronous
    2. asynchronous
    if your answer is synchronous then go with Trigger, we can invoke a trigger after insert, after the update , before insert, before the update , etc

  • Ratnesh

    Member
    March 16, 2020 at 2:26 pm

    The events you can specify are:
    before insert.
    before update.
    before delete.
    after insert.
    after update.
    after delete.
    after undelete.

  • Kirandeep

    Member
    March 16, 2020 at 4:27 pm

    A trigger is an Apex script that executes before or after specific data manipulation language (DML) events occur, such as before object records are inserted into the database, or after records have been deleted

Log In to reply.

Popular Salesforce Blogs