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

# ms_substitute table

> Regexp for extracting info from emails when they enter they system

## ms\_substitute Table (313)

Regexp for extracting info from emails when they enter they system

## Fields

| Name           | Description                                                                           | Type                             | Nullable |
| -------------- | ------------------------------------------------------------------------------------- | -------------------------------- | :------: |
| id             | The primary key (auto-incremented)                                                    | PK                               |    No    |
| ms\_filter\_id |                                                                                       | FK [ms\_filter](./ms-filter.mdx) |    No    |
| parser\_name   | The name of the variable as used in the parser.                                       | String(255)                      |    Yes   |
| the\_regexp    | The regular expression searched for.                                                  | String(255)                      |    Yes   |
| subst\_type    | Enum indicating the target domain for this regexp (customer connection, parser, etc). | subst\_type                      |    Yes   |
| flags          | Bitmap for flags for this entry.                                                      | Int                              |    Yes   |

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

## Indexes

| Fields         | Types | Description |
| -------------- | ----- | ----------- |
| ms\_filter\_id | FK    | Index       |

## Relationships

| Table                     | Description                                                                                                       |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| [ms\_filter](./ms-filter) | This table contains email filters. These are the filters allowing you to do advanced parsing of incomming emails. |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [ms_filter table](/en/database/tables/ms-filter.md)
- [ms_trashbin table](/en/database/tables/ms-trashbin.md)
- [ms_filter_mail table](/en/database/tables/ms-filter-mail.md)
- [Substitute Template Variables](/en/api/reference/restful/agent/document_agent/substitute-template-variables.md)
- [Substitute Template Variables With Custom Tags2](/en/api/reference/restful/agent/document_agent/substitute-template-variables-with-custom-tags2.md)
- [Substitute Template Variables With Custom Tags](/en/api/reference/restful/agent/document_agent/substitute-template-variables-with-custom-tags.md)
