Need to disable a TYSO trigger from your own code? No problem! You can use these simple trigger control variables for the following objects:
Object | Trigger Control Name |
---|---|
Opportunity | tysoxrr.Util.oppTrigger |
Opportunity Line Item | tysoxrr.Util.oppLineTrigger |
Quote | tysoxrr.Util.quoteTrigger |
Quote Line Item | tysoxrr.Util.quoteLineTrigger |
Accounts | tysoxrr.Util.accountTrigger |
Contacts | tysoxrr.Util.contactTrigger |
Usage:
Let's say you would want to disable the Opportunity trigger in your code, simple use the following statement.
//Disable it here with false tysoxrr.Util.oppTrigger = false; /* I have some cool code of my own. */ //If I want to re-enable it in the same block, I would do this: tysoxrr.Util.oppTrigger = true;
Note: This is available in versions 12.21+