function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AshishGargAshishGarg 

How to disable a trigger in production

Hi,

 

I have a trigger in production which is to be deactivated. I gace tried using several ways to deactivate it like:

 

1. I have tried using change set (i.e. Inbound changeset / outbound changeset)

2. Using eclipse set the triggers status value of the trigger to false and then deploy. but it did not work

3. Created a force.com project using the trigger and then tried to deploy but it is still non workable.

 

 

Please help me to get any other way to deactivate that trigger, it critical for me...

MandyKoolMandyKool

Hi,

 

As per my knowledge we cannot disable the trigger in the productions directly.

 

One option for you is to disable it in the "Sandbox" and then re-deploy it to the production.

 

Thanks,

Mandar.

 

AshishGargAshishGarg

Hi,

 

Thanks for this.. that i know. And i have tried all the mentioned things in sandbox itself.. but its not working at all...and giving me an error of code coverage is 44% and it should be 75% atlest. And i am not fininding anyway to get it done....

MandyKoolMandyKool

Hi,

 

Did your test method covers more than 75% in sandbox?

 

Also can you please post your test method here.

 

Thanks,

Mandar.