> ## 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.

# NSContact

> Carrier object for Contact.n

Carrier object for Contact.n

## Constructors

### NSContact()

```crmscript theme={null}
NSContact
```

Initializes a new instance of the NSContact class.

## Methods

## GetActiveErpLinks()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The number of active ERP links.

**Example:**

```crmscript theme={null}
NSContact thing;
Integer activeErpLinks = thing.GetActiveErpLinks();
```

## GetAddress()

```crmscript theme={null}
NSAddress GetAddress()
```

**Returns:** [CRMScript.NetServer.NSAddress](CRMScript.NetServer.NSAddress) - Contact address as  a list of LocalizedFieldList objects.

<Note>
  Used to store localized information such as formatted address data. Suitable for passing to an address control for display.
</Note>

**Example:**

```crmscript theme={null}
NSContact thing;
NSAddress address = thing.GetAddress();
```

## GetAssociateFullName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The associate's culture formatted fullname (firstname, middleName and lastname).

**Example:**

```crmscript theme={null}
NSContact thing;
String associateFullName = thing.GetAssociateFullName();
```

## GetAssociateId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Our contact.

**Example:**

```crmscript theme={null}
NSContact thing;
Integer associateId = thing.GetAssociateId();
```

## GetBusinessName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The business list item name.

**Example:**

```crmscript theme={null}
NSContact thing;
String businessName = thing.GetBusinessName();
```

## GetCategoryName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The category list item name.

**Example:**

```crmscript theme={null}
NSContact thing;
String categoryName = thing.GetCategoryName();
```

## GetCity()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - City corresponding to zip code.

**Example:**

```crmscript theme={null}
NSContact thing;
String city = thing.GetCity();
```

## GetContactId()

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

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

**Example:**

```crmscript theme={null}
NSContact thing;
Integer contactId = thing.GetContactId();
```

## GetCountryId()

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

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

**Example:**

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

## GetCountryName()

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

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

**Example:**

```crmscript theme={null}
NSContact thing;
String countryName = thing.GetCountryName();
```

## GetDepartment()

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

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

**Example:**

```crmscript theme={null}
NSContact thing;
String department = thing.GetDepartment();
```

## GetDirectPhone()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The contacts phone.

**Example:**

```crmscript theme={null}
NSContact thing;
String directPhone = thing.GetDirectPhone();
```

## GetEmailAddress()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The contact email address.

**Example:**

```crmscript theme={null}
NSContact thing;
String emailAddress = thing.GetEmailAddress();
```

## GetEmailAddressName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Visible field.

**Example:**

```crmscript theme={null}
NSContact thing;
String emailAddressName = thing.GetEmailAddressName();
```

## GetFormattedAddress()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The contact's address, formatted with line breaks and spaces into a single string.

**Example:**

```crmscript theme={null}
NSContact thing;
String formattedAddress = thing.GetFormattedAddress();
```

## GetFullName()

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

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

**Example:**

```crmscript theme={null}
NSContact thing;
String fullName = thing.GetFullName();
```

## GetIsOwnerContact()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Is the contact an owner contact?

<Note>
  This means that all persons on this contact can on only be internal users and not external users.
</Note>

**Example:**

```crmscript theme={null}
NSContact thing;
Bool isOwnerContact = thing.GetIsOwnerContact();
```

## GetKananame()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Contact kana name, used in Japanese versions only.

**Example:**

```crmscript theme={null}
NSContact thing;
String kananame = thing.GetKananame();
```

## GetName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Contact name.

**Example:**

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

## GetOrgNr()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - VAT number or similar.

**Example:**

```crmscript theme={null}
NSContact thing;
String orgNr = thing.GetOrgNr();
```

## GetURL()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The internet address to this contact.

**Example:**

```crmscript theme={null}
NSContact thing;
String uRL = thing.GetURL();
```

## GetURLName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Visible field.

**Example:**

```crmscript theme={null}
NSContact thing;
String uRLName = thing.GetURLName();
```

## SetActiveErpLinks(Integer)

```crmscript theme={null}
Void SetActiveErpLinks(Integer activeErpLinks)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
Integer activeErpLinks;
thing.SetActiveErpLinks(activeErpLinks);
```

## SetAddress(NSAddress)

```crmscript theme={null}
Void SetAddress(NSAddress address)
```

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

<Note>
  Used to store localized information such as formatted address data. Suitable for passing to an address control for display.
</Note>

**Example:**

```crmscript theme={null}
NSContact thing;
NSAddress address;
thing.SetAddress(address);
```

## SetAssociateFullName(String)

```crmscript theme={null}
Void SetAssociateFullName(String associateFullName)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String associateFullName;
thing.SetAssociateFullName(associateFullName);
```

## SetAssociateId(Integer)

```crmscript theme={null}
Void SetAssociateId(Integer associateId)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
Integer associateId;
thing.SetAssociateId(associateId);
```

## SetBusinessName(String)

```crmscript theme={null}
Void SetBusinessName(String businessName)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String businessName;
thing.SetBusinessName(businessName);
```

## SetCategoryName(String)

```crmscript theme={null}
Void SetCategoryName(String categoryName)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String categoryName;
thing.SetCategoryName(categoryName);
```

## SetCity(String)

```crmscript theme={null}
Void SetCity(String city)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String city;
thing.SetCity(city);
```

## SetContactId(Integer)

```crmscript theme={null}
Void SetContactId(Integer contactId)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
Integer contactId;
thing.SetContactId(contactId);
```

## SetCountryId(Integer)

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

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

**Example:**

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

## SetCountryName(String)

```crmscript theme={null}
Void SetCountryName(String countryName)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String countryName;
thing.SetCountryName(countryName);
```

## SetDepartment(String)

```crmscript theme={null}
Void SetDepartment(String department)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String department;
thing.SetDepartment(department);
```

## SetDirectPhone(String)

```crmscript theme={null}
Void SetDirectPhone(String directPhone)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String directPhone;
thing.SetDirectPhone(directPhone);
```

## SetEmailAddress(String)

```crmscript theme={null}
Void SetEmailAddress(String emailAddress)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String emailAddress;
thing.SetEmailAddress(emailAddress);
```

## SetEmailAddressName(String)

```crmscript theme={null}
Void SetEmailAddressName(String emailAddressName)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String emailAddressName;
thing.SetEmailAddressName(emailAddressName);
```

## SetFormattedAddress(String)

```crmscript theme={null}
Void SetFormattedAddress(String formattedAddress)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String formattedAddress;
thing.SetFormattedAddress(formattedAddress);
```

## SetFullName(String)

```crmscript theme={null}
Void SetFullName(String fullName)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String fullName;
thing.SetFullName(fullName);
```

## SetIsOwnerContact(Bool)

```crmscript theme={null}
Void SetIsOwnerContact(Bool isOwnerContact)
```

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

<Note>
  This means that all persons on this contact can on only be internal users and not external users.
</Note>

**Example:**

```crmscript theme={null}
NSContact thing;
Bool isOwnerContact;
thing.SetIsOwnerContact(isOwnerContact);
```

## SetKananame(String)

```crmscript theme={null}
Void SetKananame(String kananame)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String kananame;
thing.SetKananame(kananame);
```

## SetName(String)

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

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

**Example:**

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

## SetOrgNr(String)

```crmscript theme={null}
Void SetOrgNr(String orgNr)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String orgNr;
thing.SetOrgNr(orgNr);
```

## SetURL(String)

```crmscript theme={null}
Void SetURL(String uRL)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String uRL;
thing.SetURL(uRL);
```

## SetURLName(String)

```crmscript theme={null}
Void SetURLName(String uRLName)
```

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

**Example:**

```crmscript theme={null}
NSContact thing;
String uRLName;
thing.SetURLName(uRLName);
```


## Related topics

- [NSContactAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSContactAgent.md)
- [NSContactSummary](/en/automation/crmscript/reference/CRMScript.NetServer.NSContactSummary.md)
- [NSContactActivity](/en/automation/crmscript/reference/CRMScript.NetServer.NSContactActivity.md)
- [NSContactEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSContactEntity.md)
