Cert++
Close

State and country picklists for LWR stores

Key Takeaway

In LWR stores, addresses need two-digit ISO codes for country and state or province. Enable state and country/territory picklists so users pick valid codes. Change sets don't move picklist values, so add any custom state in each org yourself.

State and country/territory picklists replace free-text address fields with standard lists, so users pick a valid value instead of typing one. They matter in B2B Commerce because stores built on the LWR (Lightning Web Runtime) template need two-digit ISO codes in addresses. Salesforce recommends turning the picklists on for B2B Commerce stores so address data stays consistent across the org.

Two-digit codes in LWR stores

Stores built on the LWR template accept only two-digit ISO codes for the country and the state or province in an address. A typed value like "United States" or "Calif." doesn't fit, because it isn't a two-digit code.

Salesforce recommends that the Salesforce Admin enable state and country/territory picklists to cut down on entry errors. Users then select values from a list, so only allowed values can be selected. As a result, two-digit ISO codes are used consistently across the entire org.

Salesforce Accredited B2B Commerce Administrator Professional Study Guide

Checklist progress

0/149Learned

Demonstrate understanding of deployment options available and the store deployment life-cycle including all supporting objects and their related configuration

0/34

Store country and tax type settings

Learn this concept

Store catalog and category structure

Learn this concept

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Salesforce Accredited B2B Commerce Administrator Professional studiers.