Skip to main content
5 respuestas
  1. 10 ene 2018, 21:32
    Hi Steve,

    Please check following links to deactivate trigger in production :

    https://help.salesforce.com/articleView?id=000005417&type=1

    There are two way to deactivate the Trigger directly in prod

    1) Create custom setting to activate or deactivate trigger (Best One)

    https://www.sundoginteractive.com/blog/disabling-triggers-in-production-dynamically

    http://www.salesforcegeneral.com/salesforce-articles/salesforce-bypass-rules-and-triggers.html

    2) You can also do the same by eclipse. Please check post

    https://help.salesforce.com/apex/HTViewSolution?id=000005417&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000005417&language=en_US)

    Important: You must consider the consequences of disabling a trigger in the production environment during work hours. It is highly recommended to perform this work outside normal business hours and to disable access to the application to non-administrators during the maintenance period.

    Follow these steps:

    1) Disable the trigger in the sandbox environment

    2) Create a new project in Eclipse using the Sandbox and including the trigger (or refresh your existing Eclipse project)

    3) Alternative: edit the trigger name.trigger-meta.xml in an existing project and change the status node to false: <status>Inactive</status>

    4) Save the change locally

    5) Deploy the trigger to production

    6) Complete the data load

    7) If the change is not permanent or you want to enable the trigger again then enable the trigger by making it active on the sandbox or project again and deploy it to production

    Please let us know if this will help you

    Thanks

    Varaprasad

    @For Support: varaprasad4sfdc@gmail.com
0/9000