To comment code, you need to use /* and */ . ![]() The other simpler way is comment your entire apex trigger code in your sandbox and then use outbound change set to deploy to production. Create an outbound change set, upload and deploy the change set to production. This is the simplest way to do of all is Deactivate your trigger in your sandbox by unchecking the Active checkbox of the trigger. DEACTIVATE THE TRIGGER IN SANDBOX AND DEPLOY So, be ready with your test classes for the other existing apex classes/triggers.ġ. Note: A common known issue while deactivating trigger is code coverage (more than 75%).Specially, if the trigger you are turning off has lots of code, it will definitely impact your overall code coverage. ![]() Unlike in sandbox, where you can edit a trigger to uncheck the “Active” checkbox, you cannot do the same in a Production instance. So, Here we have some easy ways to Disable or Delete apex classes/Triggers in production environment for you.
0 Comments
Leave a Reply. |