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

# NSTicketCategory

## Constructors

### NSTicketCategory()

```crmscript theme={null}
NSTicketCategory
```

Initializes a new instance of the NSTicketCategory class.

## Methods

## GetId()

Gets the primary key (ID) for the NSTicketCategory

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

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

**Example:**

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

## GetTooltip()

Gets the tooltip description for the NSTicketCategory list item.

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

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

**Example:**

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

## GetValue()

Gets the name of the NSTicketCategory.

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

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

**Example:**

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

## SetId(Integer)

Sets the primary key (ID) for the NSTicketCategory

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

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

**Example:**

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

## SetTooltip(String)

Sets the tooltip description for the NSTicketCategory list item.

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

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

**Example:**

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

## SetValue(String)

Sets the name of the NSTicketCategory item.

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

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

**Example:**

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


## Related topics

- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [NSChatTopicEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSChatTopicEntity.md)
- [NSTicketCategoryEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSTicketCategoryEntity.md)
- [NSTicketCategoryMembershipEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSTicketCategoryMembershipEntity.md)
- [NSTicketEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSTicketEntity.md)
- [Get Ticket Category](/en/api/reference/restful/agent/list_agent/get-ticket-category.md)
