Activity Forums Salesforce® Discussions What are the considerations while implementing the Triggers in Salesforce?

  • What are the considerations while implementing the Triggers in Salesforce?

    Posted by Pooja on July 8, 2020 at 6:27 am

    What are the considerations while implementing the Triggers in Salesforce?

    MOHIT replied 4 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • MOHIT

    Member
    July 8, 2020 at 3:10 pm

    Consider the following before implementing the triggers.
    Upsert trigger fires on 4 different events :- before(insert, update), after (insert, update)
    Merge trigger are fired on both events on delete
    Field history is updated after the trigger has successfully finished processing data.
    Any callout should be asynchronous so that trigger does not have to wait for the response.
    A trigger cannot have a static keyword in its code.
    If a trigger completes successfully the changes are committed to the database and if it fails the transaction is rolled back.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos