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

# NSTemplateInfo

> Information about a document template, i.e., a document that generally contains unresolved merge tags and that is used as the source for creating new documents.

Information about a document template, i.e., a document that generally contains unresolved merge tags and that is used as the source for creating new documents.

## Constructors

### NSTemplateInfo()

```crmscript theme={null}
NSTemplateInfo
```

Initializes a new instance of the NSTemplateInfo class.

## Methods

## GetDescription()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Document description, shown as a tooltip or in some extended description area.

**Example:**

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

## GetExternalReference()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Unique key that identifies the document so it can be retrieved.

**Example:**

```crmscript theme={null}
NSTemplateInfo thing;
String externalReference = thing.GetExternalReference();
```

## GetName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Name of the document, shown in lists etc to the user.

**Example:**

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

## GetPluginId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - ID of plugin that stores this template, so it can be retrieved.

**Example:**

```crmscript theme={null}
NSTemplateInfo thing;
Integer pluginId = thing.GetPluginId();
```

## SetDescription(String)

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

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

**Example:**

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

## SetExternalReference(String)

```crmscript theme={null}
Void SetExternalReference(String externalReference)
```

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

**Example:**

```crmscript theme={null}
NSTemplateInfo thing;
String externalReference;
thing.SetExternalReference(externalReference);
```

## SetName(String)

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

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

**Example:**

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

## SetPluginId(Integer)

```crmscript theme={null}
Void SetPluginId(Integer pluginId)
```

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

**Example:**

```crmscript theme={null}
NSTemplateInfo thing;
Integer pluginId;
thing.SetPluginId(pluginId);
```


## Related topics

- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [NSDocumentAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSDocumentAgent.md)
- [SuperOffice.WebApi.Data.TemplateInfo](/en/api/reference/webapi/SuperOffice.WebApi.Data.TemplateInfo.md)
- [Variables for quote info](/en/document/templates/variables/for-quote-info.md)
- [Reply template variables (Service)](/en/knowledge-base/learn/reply-templates/template-variables.md)
- [NSFieldInfoBase](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoBase.md)
