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

# NSRelationToOwner

## Constructors

### NSRelationToOwner()

```crmscript theme={null}
NSRelationToOwner
```

Initializes a new instance of the NSRelationToOwner class.

## Methods

## GetId()

Gets the primary key (ID) for the NSRelationToOwner

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

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

**Example:**

```crmscript theme={null}
NSRelationToOwner thing;
Integer id = thing.GetId();
```

## GetTooltip()

Gets the tooltip description for the NSRelationToOwner list item.

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

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

**Example:**

```crmscript theme={null}
NSRelationToOwner thing;
String descr = thing.GetTooltip();
```

## GetValue()

Gets the name of the NSRelationToOwner.

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

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

**Example:**

```crmscript theme={null}
NSRelationToOwner thing;
String name = thing.GetValue();
```

## SetId(Integer)

Sets the primary key (ID) for the NSRelationToOwner

```crmscript theme={null}
Void SetId(Integer id)
```

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

**Example:**

```crmscript theme={null}
NSRelationToOwner thing;
thing.SetId(123);
```

## SetTooltip(String)

Sets the tooltip description for the NSRelationToOwner list item.

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

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

**Example:**

```crmscript theme={null}
NSRelationToOwner thing;
String descr = "something new";
thing.SetTooltip(descr);
```

## SetValue(String)

Sets the name of the NSRelationToOwner item.

```crmscript theme={null}
Void SetValue(String value)
```

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

**Example:**

```crmscript theme={null}
NSRelationToOwner thing;
thing.SetValue("frotz");
```


## Related topics

- [NSDataRights](/en/automation/crmscript/reference/CRMScript.NetServer.NSDataRights.md)
- [Enum values for RelationToOwner](/en/database/tables/enums/relationtoowner.md)
- [Enum RoleRelationToOwner](/en/automation/crmscript/reference/CRMScript.NetServer.RoleRelationToOwner.md)
- [SuperOffice.WebApi.Data.RelationToOwner](/en/api/reference/webapi/SuperOffice.WebApi.Data.RelationToOwner.md)
- [SuperOffice.WebApi.Data.RoleRelationToOwner](/en/api/reference/webapi/SuperOffice.WebApi.Data.RoleRelationToOwner.md)
- [SuperOffice.WebApi.Agents.IUserAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IUserAgent.md)
