You are here:
State and Country/Territory Picklists and Metadata API
If you’re editing many state and country/territory picklist integration values, usingMetadata API is more efficient than editing values in Setup.

Use more general search terms.
Select fewer filters to broaden your search.
If you’re editing many state and country/territory picklist integration values, usingMetadata API is more efficient than editing values in Setup.
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: All Editions except Database.com |
You can use Metadata API to edit existing states, countries, and territories in state and country/territory picklists. You can’t use Metadata API to create or delete new states, countries, or territories.
To edit the existing states and countries in a picklist, configure your state and country/territory picklists in your sandbox org. Then, use Metadata API to retrieve the sandbox configurations, and deploy them to your production org. You can’t deploy new ISO codes or update ISO code values using any API.
Search for "AddressSettings" in the Metadata API Developer Guide for information about working with state and country/territory picklists in Metadata API.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.