7

I am trying to deploy approval process to cutomer Production orgs. It is difficult to do the manual creation of approval in each customer org. Anybody know this can be done by ANT/Eclipse ? Thanks in advance

  • 1
    use changeset boss:).Why take trouble with eclipse or ANT – Mohith Shrivastava Nov 11 '13 at 10:43
  • Mohith we want from organisation to organisation not as sandbox to production. From source org to any other salesforce org I should be able to migrate approval process. – Shebin Mathew Nov 11 '13 at 10:49
  • i see now .but we have metadata for sure so it should be like normal migration in eclipse .Just extract in eclipse using updated version (v 28) and deploy .Same like normal deployments i believe – Mohith Shrivastava Nov 11 '13 at 10:52
  • Do you know how to extract the metadata xml using ANT tool or exlipse? – Shebin Mathew Nov 11 '13 at 11:00
  • Hi Shebin, If you have gotten an answer to this question then please mark an existing answer as the correct one or add a new answer yourself. Thanks – BarCotter Nov 14 '13 at 11:00
12

You will be able to pull/push the approval process using a the following package.xml. The ApprovalProcess element will pull down the Approval Process and the Workflow element will pull down any of the actions that are referenced in the Approval Process for that action. Replace CustomObject__c with whatever object(s) your approval processes are on, this will make sure actions such as field updates are also pulled down when doing a refresh.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>ApprovalProcess</name>
    </types>
    <types>
        <members>CustomObject__c</members>
        <name>Workflow</name>
    </types>
    <version>28.0</version>
</Package>

The ability to access approval processes directly without using change sets has only been possible since the Winter '14 release.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.