How are people populating the state field in a shipping address if the source data (ecommerce) doesn't match the exact name of a state in NS? For country, you just use the ISO code, that doesn't exist for state names in various countries.
l
Livio
11/09/2021, 9:35 PM
Maybe cause its a text field - it doesnt need to match anything
though the kind of work that requires transforming non matching values usually is a hardcoded lookup kind of deal
s
stalbert
11/09/2021, 10:40 PM
we tend to use a hardcoded enum generated from a SuiteQL query of the states configured on a NS account. Since states change infrequently we deem it a reasonable tradeoff. For those that don't you can just repeat/cache search results.