alan-morey / force-meta-backup

A tool to help download Salesforce.com Metadata
43 stars 22 forks source link

StandardValueSets are not retrieved #63

Closed alan-morey closed 5 years ago

alan-morey commented 6 years ago

sf:bulkRetrieve does not seem to support the retrieval of StandardValueSets in bulk, which means the backup is currently not downloading these metadata components.

The following Ant output shows zero items retrieved:

[sf:bulkRetrieve] Total number of items to be retrieved for Metadata type 'StandardValueSet' = 0

Workaround: StandardValueSet does not support use of the wildcard character in package.xml as per metadata types table, however, we can create a package.xml that explicitly lists each StandardValueSet by its name.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>AccountContactMultiRoles</members>
        <members>AccountContactRole</members>
        <members>AccountOwnership</members>
        ...
        <members>WorkOrderPriority</members>
        <members>WorkOrderStatus</members>
        <name>StandardValueSet</name>
    </types>

    <version>42.0</version>
</Package>