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

# NSReplyTemplate

## Constructors

### NSReplyTemplate()

```crmscript theme={null}
NSReplyTemplate
```

Initializes a new instance of the NSReplyTemplate class.

## Methods

## GetDescription()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The description for this reply template.

**Example:**

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

## GetFolderId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The ID of the folder in which this reply template is located. NULL or -1 if this is a top-level reply template.

**Example:**

```crmscript theme={null}
NSReplyTemplate thing;
Integer folderId = thing.GetFolderId();
```

## GetName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name for this reply template.

**Example:**

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

## GetReplyTemplateId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The primary key (auto-incremented).

**Example:**

```crmscript theme={null}
NSReplyTemplate thing;
Integer replyTemplateId = thing.GetReplyTemplateId();
```

## SetDescription(String)

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

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

**Example:**

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

## SetFolderId(Integer)

```crmscript theme={null}
Void SetFolderId(Integer folderId)
```

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

**Example:**

```crmscript theme={null}
NSReplyTemplate thing;
Integer folderId;
thing.SetFolderId(folderId);
```

## SetName(String)

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

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

**Example:**

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

## SetReplyTemplateId(Integer)

```crmscript theme={null}
Void SetReplyTemplateId(Integer replyTemplateId)
```

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

**Example:**

```crmscript theme={null}
NSReplyTemplate thing;
Integer replyTemplateId;
thing.SetReplyTemplateId(replyTemplateId);
```


## Related topics

- [NSChatTopicEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSChatTopicEntity.md)
- [Create reply template](/en/knowledge-base/learn/reply-templates/create.md)
- [Work with reply templates](/en/knowledge-base/learn/reply-templates/index.md)
- [reply_template table](/en/database/tables/reply-template.md)
- [ReplyTemplate](/en/automation/crmscript/reference/CRMScript.Native.ReplyTemplate.md)
- [Reply to contact](/en/request/learn/reply.md)
