The State field is automatically populated when :
- countrypicklist is enabled
- State is required in the country.
For this to work, when country picklists are enabled then our APIs return the iso code of the state in a specific field called "Province".
Example:
{
"1": {
"Province": "RJ",
"IDLocalite": "26327-030",
"ListeNumero": "1",
"NbNumero": "1",
"LieuDit": "Vila Santa Catarina",
"IDVoie": "26327-030",
"Voie": "Rua Paz",
"Cedex": "0",
"Numero": "1",
"TypeVoie": "",
"Instance": "1",
"Region1": "RJ",
"CodePostal": "26327-030",
"label": "Rua Paz|1|Vila Santa Catarina|Queimados - RJ|26327-030",
"Pays": "BRA",
"Complement2": "",
"Localite": "Queimados",
"Complement": "",
"SousLocalite": ""
}
This value is then compared with Salesforce's list of states, and the correct associated state.
If, all of a sudden, the state is no longer retrieved, you need to check in the Salesforce Setup if the
country picklist are activated.
Secondly, make sure that the states are also present in the Salesforce list.
If this is the case, you need to check whether DQE sends the same thing to the API.
you can do the test on the DQE swagger on the postal address :
https://app.swaggerhub.com/apis-docs/DQESoftware/DQE_ADDRESS
Now you only need to authenticate with your API key.