# Country Code Setting

1. **State Settings:**

&#x20;Enter only those States in CRM that are present in Sage X3.

&#x20; 2\.   **Country Code setting:**

While adding an address, or updating an address in CRM that needs to be promoted in Sage X3. Please note that the country selected in CRM should have a code that matches the country in Sage X3. Refer to the below screenshot.      &#x20;

<figure><img src="/files/npGK5UPqn9dSW2W6nxxU" alt=""><figcaption></figcaption></figure>

For setting up the code in CRM, follow the below steps

a.  Go to Administration –> Customization -> Address.

b.  In the Fields Tab, click on the selection field for the Country field.

<figure><img src="/files/NGfMJtzO6vkQHyj5yVok" alt=""><figcaption></figcaption></figure>

c.  Select a country. Its translation and code will be populated on the right-hand side column.   Refer to the below image.

<figure><img src="/files/8nPBMcDXNFUv8X6QOae7" alt=""><figcaption></figcaption></figure>

d.  Since you cannot edit an existing translation, you will have to delete the existing Country code and create a new one. Click on the Delete button. The country that you have selected will no longer be listed.

e.  Now create a new country name by adding the code and translation. Here you need to be sure that the country code specified matches the one specified in Sage X3.

f.  Click on Add to add the country to the list.

g.  Then, under the Selection Properties, select the required Country and accordingly change the code so as to match the Country as in Sage X3. Refer to the above screenshot.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.greytrix.com/gumu-sage-crm-integration/sage-x3/installation-guide/pre-requisites/country-code-setting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
