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

# ReplyTemplate

> Represents a reply template.

Represents a reply template.

## Constructors

### ReplyTemplate()

```crmscript theme={null}
ReplyTemplate
```

Initializes a new instance of the ReplyTemplate class.

## Methods

## getAttachments(Integer)

Gets all attachment IDs belonging to a reply template.

```crmscript theme={null}
Integer[] getAttachments(Integer lang)
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer)\[] - Attachment IDs belonging to a reply template.

## getHtmlBody(Integer)

Returns the reply template HTML body, in the language given by language. If language does not exists it will return default language.

```crmscript theme={null}
String getHtmlBody(Integer language)
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The reply template HTML body, in the language given.

<Note>
  Supported languages depend on configuration.
</Note>

## getName()

Returns the name of the reply template.

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

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

## getPlainBody(Integer)

Returns the reply template plain text body in the given language (if available). If language does not exists, it will return default language.

```crmscript theme={null}
String getPlainBody(Integer language)
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The reply template plain text body in the given language.

## getSmsBody(Integer)

Returns the reply template SMS body, in the language given by language ID. If language does not exists it will return default language.

```crmscript theme={null}
String getSmsBody(Integer language)
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The reply template SMS body in the language given.

## getSubject(Integer)

Returns the reply template subject, in the language given by language. If language does not exists it will return default language.

```crmscript theme={null}
String getSubject(Integer language)
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The reply template plain-text subject in the language given.

<Note>
  Supported languages depend on configuration.
</Note>

## load(Integer)

This function loads a reply template to the object.

```crmscript theme={null}
Bool load(Integer id)
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - True if reply template with given ID loaded successfully; otherwise, false.


## Related topics

- [SuperOffice.WebApi.Data.ReplyTemplate](/en/api/reference/webapi/SuperOffice.WebApi.Data.ReplyTemplate.md)
- [SuperOffice.WebApi.Data.TicketTypeEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketTypeEntity.md)
- [How to use a reply template in CRMScript](/en/automation/crmscript/howto/request/reply-templates.md)
- [Void](/en/automation/crmscript/reference/CRMScript.Global.Void.md)
- [SuperOffice.WebApi.Data.TicketCategoryEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketCategoryEntity.md)
- [Namespace CRMScript.Native](/en/automation/crmscript/reference/CRMScript.Native.md)
