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

# NSSaleType

## Constructors

### NSSaleType()

```crmscript theme={null}
NSSaleType
```

Initializes a new instance of the NSSaleType class.

## Methods

## GetId()

Gets the primary key (ID) for the NSSaleType

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

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

**Example:**

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

## GetTooltip()

Gets the tooltip description for the NSSaleType list item.

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

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

**Example:**

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

## GetValue()

Gets the name of the NSSaleType.

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

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

**Example:**

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

## SetId(Integer)

Sets the primary key (ID) for the NSSaleType

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

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

**Example:**

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

## SetTooltip(String)

Sets the tooltip description for the NSSaleType list item.

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

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

**Example:**

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

## SetValue(String)

Sets the name of the NSSaleType item.

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

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

**Example:**

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


## Related topics

- [NSSaleTypeEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSSaleTypeEntity.md)
- [NSSaleEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSSaleEntity.md)
- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [NSSaleTypeStageLink](/en/automation/crmscript/reference/CRMScript.NetServer.NSSaleTypeStageLink.md)
- [NSSuggestedAppointmentEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSSuggestedAppointmentEntity.md)
- [NSSuggestedDocumentEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSSuggestedDocumentEntity.md)
