> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSCountry

> Carrier object for Country.

Carrier object for Country.

## Constructors

### NSCountry()

```crmscript theme={null}
NSCountry
```

Initializes a new instance of the NSCountry class.

## Methods

## GetAddressLayoutId()

```crmscript theme={null}
Integer GetAddressLayoutId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Address layout of the country.

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer addressLayoutId = thing.GetAddressLayoutId();
```

## GetCountryId()

```crmscript theme={null}
Integer GetCountryId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer countryId = thing.GetCountryId();
```

## GetCurrencyId()

```crmscript theme={null}
Integer GetCurrencyId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Default currency for this country.

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer currencyId = thing.GetCurrencyId();
```

## GetDeleted()

```crmscript theme={null}
Bool GetDeleted()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - true if the country is deleted.

**Example:**

```crmscript theme={null}
NSCountry thing;
Bool deleted = thing.GetDeleted();
```

## GetDialInPrefix()

```crmscript theme={null}
String GetDialInPrefix()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Dial in prefix.

**Example:**

```crmscript theme={null}
NSCountry thing;
String dialInPrefix = thing.GetDialInPrefix();
```

## GetDomainName()

```crmscript theme={null}
String GetDomainName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Domain name of the country.

**Example:**

```crmscript theme={null}
NSCountry thing;
String domainName = thing.GetDomainName();
```

## GetDomesticAddressLayoutId()

```crmscript theme={null}
Integer GetDomesticAddressLayoutId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Domestic address layout of the country.

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer domesticAddressLayoutId = thing.GetDomesticAddressLayoutId();
```

## GetEnglishName()

```crmscript theme={null}
String GetEnglishName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Name of country in English.

**Example:**

```crmscript theme={null}
NSCountry thing;
String englishName = thing.GetEnglishName();
```

## GetForeignAddressLayoutId()

```crmscript theme={null}
Integer GetForeignAddressLayoutId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Foreign address layout of the country.

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer foreignAddressLayoutId = thing.GetForeignAddressLayoutId();
```

## GetImageDescription()

```crmscript theme={null}
String GetImageDescription()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Description of the country's flag image.

<Note>
  This is the country flag that is displayed in the CRM client
</Note>

**Example:**

```crmscript theme={null}
NSCountry thing;
String imageDescription = thing.GetImageDescription();
```

## GetInterAreaPrefix()

```crmscript theme={null}
String GetInterAreaPrefix()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - International prefix.

**Example:**

```crmscript theme={null}
NSCountry thing;
String interAreaPrefix = thing.GetInterAreaPrefix();
```

## GetName()

```crmscript theme={null}
String GetName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Name of country in installed language.

**Example:**

```crmscript theme={null}
NSCountry thing;
String name = thing.GetName();
```

## GetOrgNrText()

```crmscript theme={null}
String GetOrgNrText()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Lead text for organization field.

**Example:**

```crmscript theme={null}
NSCountry thing;
String orgNrText = thing.GetOrgNrText();
```

## GetRank()

```crmscript theme={null}
Integer GetRank()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The rank of the country.

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer rank = thing.GetRank();
```

## GetThreeLetterISOCountry()

```crmscript theme={null}
String GetThreeLetterISOCountry()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Three-letter country-code according to ISO3166

**Example:**

```crmscript theme={null}
NSCountry thing;
String threeLetterISOCountry = thing.GetThreeLetterISOCountry();
```

## GetTooltip()

```crmscript theme={null}
String GetTooltip()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The tooltip of the country.

**Example:**

```crmscript theme={null}
NSCountry thing;
String tooltip = thing.GetTooltip();
```

## GetTwoLetterISOCountry()

```crmscript theme={null}
String GetTwoLetterISOCountry()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Two-letter country-code according to ISO3166

**Example:**

```crmscript theme={null}
NSCountry thing;
String twoLetterISOCountry = thing.GetTwoLetterISOCountry();
```

## GetZipPrefix()

```crmscript theme={null}
String GetZipPrefix()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Post prefix.

**Example:**

```crmscript theme={null}
NSCountry thing;
String zipPrefix = thing.GetZipPrefix();
```

## SetAddressLayoutId(Integer)

```crmscript theme={null}
Void SetAddressLayoutId(Integer addressLayoutId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer addressLayoutId;
thing.SetAddressLayoutId(addressLayoutId);
```

## SetCountryId(Integer)

```crmscript theme={null}
Void SetCountryId(Integer countryId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer countryId;
thing.SetCountryId(countryId);
```

## SetCurrencyId(Integer)

```crmscript theme={null}
Void SetCurrencyId(Integer currencyId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer currencyId;
thing.SetCurrencyId(currencyId);
```

## SetDeleted(Bool)

```crmscript theme={null}
Void SetDeleted(Bool deleted)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
Bool deleted;
thing.SetDeleted(deleted);
```

## SetDialInPrefix(String)

```crmscript theme={null}
Void SetDialInPrefix(String dialInPrefix)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
String dialInPrefix;
thing.SetDialInPrefix(dialInPrefix);
```

## SetDomainName(String)

```crmscript theme={null}
Void SetDomainName(String domainName)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
String domainName;
thing.SetDomainName(domainName);
```

## SetDomesticAddressLayoutId(Integer)

```crmscript theme={null}
Void SetDomesticAddressLayoutId(Integer domesticAddressLayoutId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer domesticAddressLayoutId;
thing.SetDomesticAddressLayoutId(domesticAddressLayoutId);
```

## SetEnglishName(String)

```crmscript theme={null}
Void SetEnglishName(String englishName)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
String englishName;
thing.SetEnglishName(englishName);
```

## SetForeignAddressLayoutId(Integer)

```crmscript theme={null}
Void SetForeignAddressLayoutId(Integer foreignAddressLayoutId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer foreignAddressLayoutId;
thing.SetForeignAddressLayoutId(foreignAddressLayoutId);
```

## SetImageDescription(String)

```crmscript theme={null}
Void SetImageDescription(String imageDescription)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

<Note>
  This is the country flag that is displayed in the CRM client
</Note>

**Example:**

```crmscript theme={null}
NSCountry thing;
String imageDescription;
thing.SetImageDescription(imageDescription);
```

## SetInterAreaPrefix(String)

```crmscript theme={null}
Void SetInterAreaPrefix(String interAreaPrefix)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
String interAreaPrefix;
thing.SetInterAreaPrefix(interAreaPrefix);
```

## SetName(String)

```crmscript theme={null}
Void SetName(String name)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
String name;
thing.SetName(name);
```

## SetOrgNrText(String)

```crmscript theme={null}
Void SetOrgNrText(String orgNrText)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
String orgNrText;
thing.SetOrgNrText(orgNrText);
```

## SetRank(Integer)

```crmscript theme={null}
Void SetRank(Integer rank)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
Integer rank;
thing.SetRank(rank);
```

## SetThreeLetterISOCountry(String)

```crmscript theme={null}
Void SetThreeLetterISOCountry(String threeLetterISOCountry)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
String threeLetterISOCountry;
thing.SetThreeLetterISOCountry(threeLetterISOCountry);
```

## SetTooltip(String)

```crmscript theme={null}
Void SetTooltip(String tooltip)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
String tooltip;
thing.SetTooltip(tooltip);
```

## SetTwoLetterISOCountry(String)

```crmscript theme={null}
Void SetTwoLetterISOCountry(String twoLetterISOCountry)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
String twoLetterISOCountry;
thing.SetTwoLetterISOCountry(twoLetterISOCountry);
```

## SetZipPrefix(String)

```crmscript theme={null}
Void SetZipPrefix(String zipPrefix)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCountry thing;
String zipPrefix;
thing.SetZipPrefix(zipPrefix);
```


## Related topics

- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [NSPersonEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSPersonEntity.md)
- [NSContactEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSContactEntity.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [country](/en/api/mdo-providers/reference/country.md)
- [Save Country](/en/api/reference/restful/agent/list_agent/save-country.md)
