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

# NSProductExtraDataField

> A way to show some simple extra data on a product, typically to hep the user to identify the correct product. Basically a bucket of additional info that the ERP system would like to store and show in the user interface. Information placed here is shown in the GUI if the provide-extra-data capability is true.

A way to show some simple extra data on a product, typically to hep the user to identify the correct product. Basically a bucket of additional info that the ERP system would like to store and show in the user interface. Information placed here is shown in the GUI if the provide-extra-data capability is true.

## Constructors

### NSProductExtraDataField()

```crmscript theme={null}
NSProductExtraDataField
```

Initializes a new instance of the NSProductExtraDataField class.

## Methods

## GetName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Label for the field.

**Example:**

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

## GetType()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - String, URL, image. How the value should be interpreted. See \<xref href="CRMScript.NetServer.ExtraDataFieldType" data-throw-if-not-resolved="false">\</xref>

**Example:**

```crmscript theme={null}
NSProductExtraDataField thing;
Integer type = thing.GetType();
```

## GetValue()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Value for the field. If type is string, it can contain format specifiers (use this for displaying numbers correctly as the user's computer is set up).

**Example:**

```crmscript theme={null}
NSProductExtraDataField thing;
String value = thing.GetValue();
```

## SetName(String)

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

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

**Example:**

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

## SetType(Integer)

```crmscript theme={null}
Void SetType(Integer type)
```

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

**Example:**

```crmscript theme={null}
NSProductExtraDataField thing;
Integer type;
thing.SetType(type);
```

## SetValue(String)

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

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

**Example:**

```crmscript theme={null}
NSProductExtraDataField thing;
String value;
thing.SetValue(value);
```


## Related topics

- [NSProduct](/en/automation/crmscript/reference/CRMScript.NetServer.NSProduct.md)
- [NSQuoteAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteAgent.md)
- [NSQuoteLine](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteLine.md)
- [ProductExtraDataFieldInfo](/en/api/plugins/quote-connectors/api/data-carriers/productextradatafieldinfo.md)
- [ProductInfo](/en/api/plugins/quote-connectors/api/data-carriers/productinfo.md)
- [SuperOffice.WebApi.Data.ProductExtraDataField](/en/api/reference/webapi/SuperOffice.WebApi.Data.ProductExtraDataField.md)
