Play Games

Search This Blog

Saturday, December 14, 2013

How to activate or deactivate a trigger in production?


step1 :
              Open your eclipse IDE and choose your project.

step 2:
            choose the trigger which u want to activate or deactivate.Below that you can see xml file related to that trigger.for example  testtrigger-meta.xml  file.The xml file  looks like this

<?xml version="1.0" encoding="UTF-8"?>
<ApexTrigger xmlns ="http://soap.sforce.com/2006/04/metadata">
<apiVersion >24.0 </apiVersion>
<status>Active</status> ---->  change this to Inactive or active as u require.


</ApexTrigger>

step 3:
            In the xml tag you can set inactive or active as required.Then deploy the trigger to server.



        

1 comment: