> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-worktree-351-fix-webapi-escaped-anchors.mintlify.site/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-worktree-351-fix-webapi-escaped-anchors/lG_0VSOpA0nSl_9s/media/loc/en/database/tables/ms_substitute.png?fit=max&auto=format&n=lG_0VSOpA0nSl_9s&q=85&s=39ee8a6cce1844f6ee514343ac30e852" 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.
