Loading
Prepare for Email to Become the Default Login ExperienceRead More
Set Up and Maintain Your Salesforce Organization
State and Country/Territory Picklist Field-Syncing Logic

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.
 
Loading
Salesforce Help | Article