Before & After triggers

Discussion in 'Salesforce Certification' started by Richard Raju, Nov 28, 2017.

  1. Richard Raju

    Richard Raju Well-Known Member
    Simplilearn Support

    Nov 14, 2016
    Likes Received:
    Before Triggers
    1. To perform the validations we should use before triggers.
    2. If you are updating any field on the same object on which you are writing the trigger and no need to explicitly include the DML statements (already due to DML operation only trigger fire and it is still in progress at this point of time.)
    After Triggers
    1. If you are dealing with relationship records and if you need record id in these situations we should use after trigger (in before insert record doesn't contain the record id)

Share This Page