You need to sign in to do that
Don't have an account?

I need help disabling a trigger
I had a developer re-write an Apex Class. Now I need to disable a trigger that I already had in Production that runs another Apex Class. Can someone tell me how to change this trigger so that I can deploy it but it won't do anything?
Thanks!
Thanks!
/**************************************************************************** * Name - OpportunityTriggerLargeAwards * Description - Opportunity Trigger for Large Awards * Modification Log : * --------------------------------------------------------------------------- * Developer Date Description * --------------------------------------------------------------------------- * jmasters 11-08-2016 Created ****************************************************************************/ trigger OpportunityTriggerLargeAwards on Opportunity (after delete, after insert, after undelete, after update, before delete, before insert, before update) { OpportunityTriggerHandlerLargeAwards handler = new OpportunityTriggerHandlerLargeAwards(true); /* Before Insert */ if(Trigger.isInsert && Trigger.isBefore){ handler.OnBeforeInsert(Trigger.new); } /* After Insert */ else if(Trigger.isInsert && Trigger.isAfter){ handler.OnAfterInsert(Trigger.new, Trigger.newMap); } /* Before Update */ else if(Trigger.isUpdate && Trigger.isBefore){ handler.OnBeforeUpdate(Trigger.old, Trigger.new, Trigger.oldMap, Trigger.newMap); } /* After Update */ else if(Trigger.isUpdate && Trigger.isAfter){ handler.OnAfterUpdate(Trigger.old, Trigger.new, Trigger.newMap, Trigger.oldMap); } /* Before Delete */ else if(Trigger.isDelete && Trigger.isBefore){ handler.OnBeforeDelete(Trigger.old, Trigger.oldMap); } /* After Delete */ else if(Trigger.isDelete && Trigger.isAfter){ handler.OnAfterDelete(Trigger.old, Trigger.oldMap); } /* After Undelete */ else if(Trigger.isUnDelete){ handler.OnUndelete(Trigger.new); } }
Just comment the whole code except the signature. You can deactivate it also, go to the Apex Trigger --> edit --> Uncheck the IsActive box --> save
All Answers
Just comment the whole code except the signature. You can deactivate it also, go to the Apex Trigger --> edit --> Uncheck the IsActive box --> save
* Just go to setup >>
* Search Apex Trigger >>(select this option)
* Now all trigger in your ORG will be displayed
* Search you trigger that you need to disable
* Click on edit button of you trigger
* There is a button isActive disable it if it is checked
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com