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

# reply_template table

> Templates for automatic and manual replies to emails/sms organized hierachically

## reply\_template Table (277)

Templates for automatic and manual replies to emails/sms organized hierachically

## Fields

| Name          | Description                                                                                                                                              | Type                                                      | Nullable |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | :------: |
| id            | The primary key (auto-incremented)                                                                                                                       | PK                                                        |    No    |
| name          | The name for this reply template.                                                                                                                        | String(255)                                               |    No    |
| description   | The description for this reply template.                                                                                                                 | String(255)                                               |    Yes   |
| folder\_id    | The id of the folder in which this reply template is located. NULL or -1 if this is a toplevel reply template.                                           | FK [reply\_template\_folder](./reply-template-folder.mdx) |    No    |
| owned\_by     | The id of the user who owns this reply template.                                                                                                         | FK [ejuser](./ejuser.mdx)                                 |    Yes   |
| last\_changed | When the reply template was last changed.                                                                                                                | DateTime                                                  |    Yes   |
| access\_level | The access level (enum) for this reply template.                                                                                                         | access\_level                                             |    Yes   |
| flags         | Reply template type, for example "new customer" or "new password". While called flags - this is not actually flags. Only one type can be used at a time. | Int                                                       |    Yes   |

<img src="https://mintcdn.com/superofficeas/6OcOTPa_ISkjXJg4/media/loc/en/database/tables/reply_template.png?fit=max&auto=format&n=6OcOTPa_ISkjXJg4&q=85&s=8f633a3d613acb3406204585745d40f6" alt="reply_template table relationship diagram" width="1074" height="862" data-path="media/loc/en/database/tables/reply_template.png" />

## Indexes

| Fields     | Types       | Description |
| ---------- | ----------- | ----------- |
| name       | String(255) | Index       |
| folder\_id | FK          | Index       |
| owned\_by  | FK          | Index       |

## Relationships

| Table                                                      | Description                                                                                                               |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [ej\_category](./ej-category)                              | This table contains categories, in which tickets are categorized. The categories are organized in a hierarchial manner.   |
| [ejuser](./ejuser)                                         | This table contains entries for the users of the system.                                                                  |
| [mail\_in\_filter](./mail-in-filter)                       | This table contains entries for the mailboxes the eJournal system is fetching mail from (POP3 or IMAP).                   |
| [ms\_filter](./ms-filter)                                  | This table contains email filters. These are the filters allowing you to do advanced parsing of incomming emails.         |
| [reply\_template\_attachment](./reply-template-attachment) | This table is used to connect attachments to reply templates (many-to-many).                                              |
| [reply\_template\_body](./reply-template-body)             | Contains the body of the reply templates in different languages                                                           |
| [reply\_template\_folder](./reply-template-folder)         | This table contains entries for folders for reply templates.                                                              |
| [ticket\_alert](./ticket-alert)                            | This table will contain ticket escalation levels. A ticket will be escalated along a \&apos;chain\&apos; of these levels. |
| [ticket\_type](./ticket-type)                              | A ticket (request) type                                                                                                   |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [reply_template_folder table](/en/database/tables/reply-template-folder.md)
- [ReplyTemplate](/en/automation/crmscript/reference/CRMScript.Native.ReplyTemplate.md)
- [reply_template_attachment table](/en/database/tables/reply-template-attachment.md)
- [reply_template_body table](/en/database/tables/reply-template-body.md)
- [Enum ReplyTemplateFlags](/en/automation/crmscript/reference/CRMScript.NetServer.ReplyTemplateFlags.md)
- [SuperOffice.WebApi.Data.ReplyTemplate](/en/api/reference/webapi/SuperOffice.WebApi.Data.ReplyTemplate.md)
