Retrieve Approval Processes using package.xml

Find how to retrieve Approval Processes using manifest/package.xml

Summery:

  1. Retrieve Single Approval Process
  2. Retrieve Multiple Approval Processes
  3. Retrieve All Approval Processes
  4. Fetch Approval Processes using SFDX command
Retrieve Approval Processes using package.xml file

Retrieve Single Approval Process

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

Retrieve Multiple Approval Processes

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <name>ApprovalProcess</name>
        <members>Account.Approve_30_Discount</members>
        <members>Case.Close_Case</members>
    </types>
    <version>62.0</version>
</Package>

Retrieve All Approval Processes

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

Leave a Reply