function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Brian BartlettBrian Bartlett 

How do I use the WorkBench to retrieve metadata for State / Country Picklists

Hello,
I need to export the State & Country picklist values which I think are in the Settings folder in the workbench but I need an xml file to do so

Looking for the format of the xml file needed
Best Answer chosen by Brian Bartlett
~Onkar~Onkar
Try to use ant command with below package.xml.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
        <members>Address</members>
        <name>Settings</name>
    </types>
    <version>38.0</version>
</Package>

All Answers

Durga PaavanDurga Paavan
Hi Brian,

There is an app in AppExchange which is free to export fields including picklist values to Excel.
Please find below link for the same.
https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EJg2hUAD

Hope it helps!

Cheers,
Durgapaavan
~Onkar~Onkar
Try to use ant command with below package.xml.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
        <members>Address</members>
        <name>Settings</name>
    </types>
    <version>38.0</version>
</Package>
This was selected as the best answer
Brian BartlettBrian Bartlett
Onkar,
This worked for me in the Workbench using the Retrieve feature

TY