+ Start a Discussion
nagamalli tadikondanagamalli tadikonda 

triggers in my org

Hi..
I need to make inactive all the  triggers in my org  using coding only.. Anybody have any idea?
pkpnairpkpnair
Please read this article
https://help.salesforce.com/articleView?id=000006188&type=1
Mohammad Asim AliMohammad Asim Ali
I believe hierarichal custom setting can help you. Instead of deactivating the triggers you can just skip the functionalities that the trigger performs for the entire org or specific profiles or specific users.
Create a hierarichal custom setting with a boolean field. Make the default as false. Refer this field in all your triggers and run the code only if the value is false. Whenever you want to deactivate (override) the triggers, just modify the boolean field value to true in your custom setting.