When updating the "Country/Territory" or "State/Province" of a custom address field with Data Loader, you must specify the "Country/Territory Code" and "State Code," respectively.
For example, the input CSV for updating records with Data Loader requires the following format:
(CustomAddressFieldAPIName)__CountryCode__s, (CustomAddressFieldAPIName)__StateCode__s "JP", "13"
Note: JP is the code for Japan, and 13 is the code for Tokyo.
Note: CountryCode__s is the custom address (Country/Territory), and StateCode__s is the State/Province (State Code).
Next, we will explain how to look up the "Country/Territory Codes" and "State Codes" to set in your input CSV.
Click the [Gear Icon] in the upper-right corner | [Setup].
In the "Quick Find" box, click [State and Country/Territory Picklists].
Click [Configure States, Countries, and Territories].
Here you can see the "Country/Territory Code" for each country.
For example, the code for Japan is "JP".
Click [Edit] for the country whose state codes you want to find.
Here you can see the "State Code" for each state/prefecture.
For example, the code for Tokyo is "13".
004924092

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.