Need to disable a TYSO trigger from your own code? No problem! You can use these simple trigger control variables for the following objects:


ObjectTrigger Control Name
Opportunitytysoxrr.Util.oppTrigger
Opportunity Line Itemtysoxrr.Util.oppLineTrigger
Quotetysoxrr.Util.quoteTrigger
Quote Line Itemtysoxrr.Util.quoteLineTrigger
Accounts
tysoxrr.Util.accountTrigger
Contactstysoxrr.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+