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

# NSLegalBase

> Carrier object for LegalBase.

Carrier object for LegalBase.

## Constructors

### NSLegalBase()

```crmscript theme={null}
NSLegalBase
```

Initializes a new instance of the NSLegalBase class.

## Methods

## GetDeleted()

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

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

**Example:**

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

## GetKey()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The key used to uniquely identify this legal base.

**Example:**

```crmscript theme={null}
NSLegalBase thing;
String key = thing.GetKey();
```

## GetLegalBaseId()

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

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

**Example:**

```crmscript theme={null}
NSLegalBase thing;
Integer legalBaseId = thing.GetLegalBaseId();
```

## GetName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Name of legal base.

**Example:**

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

## GetRank()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Rank of this consent source.

**Example:**

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

## GetTooltip()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Tooltip for this consent source.

**Example:**

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

## SetDeleted(Bool)

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

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

**Example:**

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

## SetKey(String)

```crmscript theme={null}
Void SetKey(String key)
```

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

**Example:**

```crmscript theme={null}
NSLegalBase thing;
String key;
thing.SetKey(key);
```

## SetLegalBaseId(Integer)

```crmscript theme={null}
Void SetLegalBaseId(Integer legalBaseId)
```

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

**Example:**

```crmscript theme={null}
NSLegalBase thing;
Integer legalBaseId;
thing.SetLegalBaseId(legalBaseId);
```

## SetName(String)

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

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

**Example:**

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

## SetRank(Integer)

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

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

**Example:**

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

## SetTooltip(String)

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

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

**Example:**

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


## Related topics

- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [NSConsentPerson](/en/automation/crmscript/reference/CRMScript.NetServer.NSConsentPerson.md)
- [NSConsentInfo](/en/automation/crmscript/reference/CRMScript.NetServer.NSConsentInfo.md)
- [Save Legal Base](/en/api/reference/restful/agent/list_agent/save-legal-base.md)
- [Put Legal Base](/en/api/reference/restful/rest/list_legalbase/put-legal-base.md)
- [Delete Legal Base](/en/api/reference/restful/rest/list_legalbase/delete-legal-base.md)
