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

# NSProductType

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

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

## Constructors

### NSProductType()

```crmscript theme={null}
NSProductType
```

Initializes a new instance of the NSProductType class.

## Methods

## GetId()

Gets the primary key (ID) for the NSProductType.

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

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

**Example:**

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

## GetTooltip()

Gets the tooltip description for the NSProductType list item.

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

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

**Example:**

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

## GetValue()

Gets the name of the NSProductType.

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

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

**Example:**

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

## SetId(Integer)

Sets the primary key (ID) for the NSProductType

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

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

**Example:**

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

## SetTooltip(String)

Sets the tooltip description for the NSProductType list item.

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

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

**Example:**

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

## SetValue(String)

Sets the name of the NSProductType item.

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

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

**Example:**

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


## Related topics

- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [Delete Product Type](/en/api/reference/restful/rest/list_producttype/delete-product-type.md)
- [Post Product Type](/en/api/reference/restful/rest/list_producttype/post-product-type.md)
- [Get Product Type](/en/api/reference/restful/rest/list_producttype/get-product-type.md)
- [Put Product Type](/en/api/reference/restful/rest/list_producttype/put-product-type.md)
- [Get Product Types](/en/api/reference/restful/agent/list_agent/get-product-types.md)
