State and Country/Territory Picklist Field-Syncing Logic
When you save records with state and country/territory picklist values, Salesforce syncs
the records’ integration and code values for states and countries. You can’t directly edit state
or country/territory integration values on record detail pages. You can directly edit records'
state or country/territory integration values only with workflows, Apex code, API integrations,
and so on.
Required Editions
Available in: both Salesforce Classic and Lightning Experience
Available in: All Editions except Database.com
Your Change
Result
You update a record’s state or country/territory code to a valid value.
Salesforce updates the record’s state or country/territory integration value to match
the code.
You update a record’s state or country/territory integration value to a valid
value.
Salesforce updates the record’s state or country/territory code to match the
integration value.
You remove a record’s country/territory code, but don’t remove the corresponding state
code.
Salesforce removes the record’s state code and the state and country/territory
integration values.
You create or update a record with state and country/territory values. The new state
isn’t in the new country.
No changes are saved. You get an error message.
You update the state or country/territory integration and code values on an existing
record. The new integration and code values don’t match.
No changes are saved. You get an error message.
You create a record with mismatched state or country/territory integration and code
values.
Salesforce updates your new record’s integration value to match the code
value.
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
Always Active
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
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
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.