Skip to main content
Hi everyone,

I've got a flow in an org that is used to create person accounts.This org also uses state/country picklists and has translations for the states/countries loaded in for languages via the translation workbench.

This flow uses the standard Address lightning component (https://help.salesforce.com/articleView?id=flow_ref_elements_screencmp_address.htm&type=5) to allow our users to enter a mailing address for the person accounts, and this has worked prefectly well for our English users but we're now running into issues with other languages.

For example: When using a Portuguese user to enter an address in Brazil (which would mean choosing the value "Brasil" in Portuguese from the country picklist) causes an exception to be thrown.

I believe this is happening because the flow is trying to insert the literal value "Brasil" into the "country" field whereas the picklist is expecting "Brazil". Is there a way we can configure that component to use the CountryCode field instead?
6 respuestas
  1. 5 sept 2024, 22:25

    Thank you, @Praneet Vig. This solved my problem with my flow not setting the country and state picklists on the data entry screen even though I was assigning the country and state. It was the state and country CODES I needed. Thank you!

0/9000