Loading
Set Up and Maintain Your Salesforce Organization
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          State and Country/Territory Picklists and Metadata API

          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.

          Required Editions

          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.

          Note
          Note AddressSettings data can change periodically, which causes discrepancies in state or country labels when deploying AddressSettings data retrieved from another org. To resolve this issue, edit the retrieved metadata to match the destination org before deployment.
           
          Loading
          Salesforce Help | Article