Activity Forums Salesforce® Discussions Is it possible for more than one of Trigger Context variables to be true within a single invocation of a trigger?

  • Is it possible for more than one of Trigger Context variables to be true within a single invocation of a trigger?

    Posted by Suraj on April 17, 2017 at 2:24 pm

    Is it possible for more than one of these variables to be true within a single invocation of a trigger?

    Trigger.isInsert

    Trigger.isUpdate

    Trigger.isDelete

    Trigger.isUndelete

     

    Manpreet replied 6 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Manpreet

    Member
    April 18, 2017 at 12:17 pm

    Hi suraj,

    No, it is not possible for more than one of these variables to be true within a single invocation of a trigger.A given operation will invoke the trigger so therefore it will only be insert OR update OR Delete OR Undelete.

    Those context variables enable you to identify the different operations within the same trigger.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos