---
schema_version: "1"
id: 2860d2ce43712b23d77526d79a80d894d9b165912aebf255a5dc73624ebdc918
title: State and Country/Territory Picklist Field-Syncing Logic
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/admin_state_country_picklists_field_syncing.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.admin_state_country_picklists_field_syncing.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b5f6049a003bce34136a8fda730367c93386e32d96dd8b8e8996807a78b3941a
description: 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.
products:
  - Salesforce Platform
  - Cross Cloud
release: "264"
---
# 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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>All</strong> Editions except Database.com</td></tr></tbody></table>

 
| 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. |

#### See Also

- [Let Users Select States, Countries, and Territories from Picklists](https://help.salesforce.com/s/articleView?id=xcloud.admin_state_country_picklists_overview.htm&release=264.0.0&type=5 "State and country/territory picklists let users select states, countries and territories from predefined, standardized lists, instead of entering state and country/territory data into text fields. State and country/territory picklists offer faster and easier data entry. They help to ensure cleaner data that can be harnessed for other uses—in reports and dashboards, for example. They protect data integrity by preventing typos, alternate spellings, and junk data—even in records updated through the API.")
- [Integration Values for State and Country/Territory Picklists](https://help.salesforce.com/s/articleView?id=xcloud.admin_state_country_picklists_integ_values.htm&release=264.0.0&type=5 "An integration value is a customizable text value that’s linked to a state or country/territory code. Integration values for states, countries, and territories default to the full ISO-standard state, country, and territory names. The way integration values function is similar to the way API names of custom fields and objects function. Configure integration values so integrations that you set up before enabling state and country/territory picklists continue to work.")
- [State and Country/Territory Picklist Error Messages](https://help.salesforce.com/s/articleView?id=xcloud.admin_state_country_picklists_errors.htm&release=264.0.0&type=5 "Understand the errors that can occur when you try to save records with mismatched code and text values for states, countries, or territories.")