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

# NSSaleStakeholder

## Constructors

### NSSaleStakeholder()

```crmscript theme={null}
NSSaleStakeholder
```

Initializes a new instance of the NSSaleStakeholder class.

## Methods

## GetComment()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Optional comment text.

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String comment = thing.GetComment();
```

## GetContactId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Contact ID of person or contact who is the sale stakeholder.

**Example:**

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

## GetContactName()

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

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String contactName = thing.GetContactName();
```

## GetCountryId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Country ID, primary key.

**Example:**

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

## GetEmailAddress()

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

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

**Example:**

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

## GetEmailDescription()

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

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String emailDescription = thing.GetEmailDescription();
```

## GetEmailId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Email address ID, Primary key.

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer emailId = thing.GetEmailId();
```

## GetFirstname()

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

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String firstname = thing.GetFirstname();
```

## GetLastname()

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

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String lastname = thing.GetLastname();
```

## GetMiddleName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Middle name or 'van' etc.

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String middleName = thing.GetMiddleName();
```

## GetMrmrs()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Mrs, Mr, Ms, Dr.

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String mrmrs = thing.GetMrmrs();
```

## GetPersonId()

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

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer personId = thing.GetPersonId();
```

## GetPhone()

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

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String phone = thing.GetPhone();
```

## GetPhoneId()

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

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer phoneId = thing.GetPhoneId();
```

## GetRank()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Rank in list of stakeholders.

**Example:**

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

## GetSaleId()

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

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer saleId = thing.GetSaleId();
```

## GetSaleStakeholderId()

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

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer saleStakeholderId = thing.GetSaleStakeholderId();
```

## GetStakeholderRoleId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Stakeholder role list ID, Primary key.

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer stakeholderRoleId = thing.GetStakeholderRoleId();
```

## GetStakeholderRoleName()

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

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String stakeholderRoleName = thing.GetStakeholderRoleName();
```

## SetComment(String)

```crmscript theme={null}
Void SetComment(String comment)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String comment;
thing.SetComment(comment);
```

## SetContactId(Integer)

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

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

**Example:**

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

## SetContactName(String)

```crmscript theme={null}
Void SetContactName(String contactName)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String contactName;
thing.SetContactName(contactName);
```

## SetCountryId(Integer)

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

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

**Example:**

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

## SetEmailAddress(String)

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

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

**Example:**

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

## SetEmailDescription(String)

```crmscript theme={null}
Void SetEmailDescription(String emailDescription)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String emailDescription;
thing.SetEmailDescription(emailDescription);
```

## SetEmailId(Integer)

```crmscript theme={null}
Void SetEmailId(Integer emailId)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer emailId;
thing.SetEmailId(emailId);
```

## SetFirstname(String)

```crmscript theme={null}
Void SetFirstname(String firstname)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String firstname;
thing.SetFirstname(firstname);
```

## SetLastname(String)

```crmscript theme={null}
Void SetLastname(String lastname)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String lastname;
thing.SetLastname(lastname);
```

## SetMiddleName(String)

```crmscript theme={null}
Void SetMiddleName(String middleName)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String middleName;
thing.SetMiddleName(middleName);
```

## SetMrmrs(String)

```crmscript theme={null}
Void SetMrmrs(String mrmrs)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String mrmrs;
thing.SetMrmrs(mrmrs);
```

## SetPersonId(Integer)

```crmscript theme={null}
Void SetPersonId(Integer personId)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer personId;
thing.SetPersonId(personId);
```

## SetPhone(String)

```crmscript theme={null}
Void SetPhone(String phone)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String phone;
thing.SetPhone(phone);
```

## SetPhoneId(Integer)

```crmscript theme={null}
Void SetPhoneId(Integer phoneId)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer phoneId;
thing.SetPhoneId(phoneId);
```

## SetRank(Integer)

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

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

**Example:**

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

## SetSaleId(Integer)

```crmscript theme={null}
Void SetSaleId(Integer saleId)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer saleId;
thing.SetSaleId(saleId);
```

## SetSaleStakeholderId(Integer)

```crmscript theme={null}
Void SetSaleStakeholderId(Integer saleStakeholderId)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer saleStakeholderId;
thing.SetSaleStakeholderId(saleStakeholderId);
```

## SetStakeholderRoleId(Integer)

```crmscript theme={null}
Void SetStakeholderRoleId(Integer stakeholderRoleId)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
Integer stakeholderRoleId;
thing.SetStakeholderRoleId(stakeholderRoleId);
```

## SetStakeholderRoleName(String)

```crmscript theme={null}
Void SetStakeholderRoleName(String stakeholderRoleName)
```

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

**Example:**

```crmscript theme={null}
NSSaleStakeholder thing;
String stakeholderRoleName;
thing.SetStakeholderRoleName(stakeholderRoleName);
```


## Related topics

- [Stakeholders](/en/automation/crmscript/howto/sale/stakeholders.md)
- [NSSaleAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSSaleAgent.md)
- [NSSaleEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSSaleEntity.md)
- [Add Sale Stakeholders](/en/api/reference/restful/agent/sale_agent/add-sale-stakeholders.md)
- [Update Sale Stakeholders](/en/api/reference/restful/agent/sale_agent/update-sale-stakeholders.md)
