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

# NSProductCategory

> The built-in product category list. Used by the SuperOffice Quote Connector to categorize products.

The built-in product category list. Used by the SuperOffice Quote Connector to categorize products.

## Constructors

### NSProductCategory()

```crmscript theme={null}
NSProductCategory
```

Initializes a new instance of the NSProductCategory class.

## Methods

## GetId()

Gets the primary key (ID) for the NSProductCategory

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - NSProductCategory Id.

**Example:**

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

## GetTooltip()

Gets the tooltip description for the NSProductCategory list item.

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

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

**Example:**

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

## GetValue()

Gets the name of the NSProductCategory.

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

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

**Example:**

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

## SetId(Integer)

Sets the primary key (ID) for the NSProductCategory

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

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

**Example:**

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

## SetTooltip(String)

Sets the tooltip description for the NSProductCategory list item.

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

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

**Example:**

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

## SetValue(String)

Sets the name of the NSProductCategory item.

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

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

**Example:**

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


## Related topics

- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [Delete Product Category](/en/api/reference/restful/rest/list_productcategory/delete-product-category.md)
- [Post Product Category](/en/api/reference/restful/rest/list_productcategory/post-product-category.md)
- [Get Product Category](/en/api/reference/restful/rest/list_productcategory/get-product-category.md)
- [Put Product Category](/en/api/reference/restful/rest/list_productcategory/put-product-category.md)
