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

# NSPreferenceDescriptionLine

> Preference description line, contains information about a single item in a preference description list.

Preference description line, contains information about a single item in a preference description list.

## Constructors

### NSPreferenceDescriptionLine()

```crmscript theme={null}
NSPreferenceDescriptionLine
```

Initializes a new instance of the NSPreferenceDescriptionLine class.

## Methods

## GetDescription()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Description of preference value, multi-language parsed.

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
String description = thing.GetDescription();
```

## GetIsBuiltin()

```crmscript theme={null}
Bool GetIsBuiltin()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - 1 = This row populated and maintained by SuperOffice.

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
Bool isBuiltin = thing.GetIsBuiltin();
```

## GetPrefDescId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Preference description (parent).

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
Integer prefDescId = thing.GetPrefDescId();
```

## GetPrefDescLineId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
Integer prefDescLineId = thing.GetPrefDescLineId();
```

## GetPrefShowValue()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Descriptive value, multilang-parsed, to put in list.

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
String prefShowValue = thing.GetPrefShowValue();
```

## GetPrefValue()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Possible value.

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
String prefValue = thing.GetPrefValue();
```

## SetDescription(String)

```crmscript theme={null}
Void SetDescription(String description)
```

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

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
String description;
thing.SetDescription(description);
```

## SetIsBuiltin(Bool)

```crmscript theme={null}
Void SetIsBuiltin(Bool isBuiltin)
```

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

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
Bool isBuiltin;
thing.SetIsBuiltin(isBuiltin);
```

## SetPrefDescId(Integer)

```crmscript theme={null}
Void SetPrefDescId(Integer prefDescId)
```

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

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
Integer prefDescId;
thing.SetPrefDescId(prefDescId);
```

## SetPrefDescLineId(Integer)

```crmscript theme={null}
Void SetPrefDescLineId(Integer prefDescLineId)
```

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

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
Integer prefDescLineId;
thing.SetPrefDescLineId(prefDescLineId);
```

## SetPrefShowValue(String)

```crmscript theme={null}
Void SetPrefShowValue(String prefShowValue)
```

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

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
String prefShowValue;
thing.SetPrefShowValue(prefShowValue);
```

## SetPrefValue(String)

```crmscript theme={null}
Void SetPrefValue(String prefValue)
```

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

**Example:**

```crmscript theme={null}
NSPreferenceDescriptionLine thing;
String prefValue;
thing.SetPrefValue(prefValue);
```


## Related topics

- [NSPreferenceAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSPreferenceAgent.md)
- [Save Preference Description Lines](/en/api/reference/restful/agent/preference_agent/save-preference-description-lines.md)
- [Delete Preference Description Line](/en/api/reference/restful/rest/preferencedescriptionline/delete-preference-description-line.md)
- [Get Preference Description Line](/en/api/reference/restful/rest/preferencedescriptionline/get-preference-description-line.md)
- [Post Preference Description Line](/en/api/reference/restful/rest/preferencedescriptionline/post-preference-description-line.md)
