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

# outgoing_message table

> Delivery of outgoing messages to messageplugins, updated with status asynchroneously

## outgoing\_message Table (407)

Delivery of outgoing messages to messageplugins, updated with status asynchroneously

## Fields

| Name                      | Description                        | Type                            | Nullable |
| ------------------------- | ---------------------------------- | ------------------------------- | :------: |
| id                        | The primary key (auto-incremented) | PK                              |    No    |
| session\_key              | Session key used for threading.    | String(255)                     |    No    |
| external\_message\_id     | Session key used for threading.    | String(255)                     |    No    |
| status                    | Current status of outgoing message | Int                             |    No    |
| status\_description       | Description of current status      | String(255)                     |    No    |
| plugin                    | Name of plugin                     | String(255)                     |    No    |
| registered                | Registered when                    | UtcDateTime                     |    No    |
| registered\_associate\_id | Registered by whom                 | FK [associate](./associate.mdx) |    No    |
| updated                   | Last updated when                  | UtcDateTime                     |    No    |
| updated\_associate\_id    | Last updated by whom               | FK [associate](./associate.mdx) |    No    |

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

## Indexes

| Fields                    | Types       | Description |
| ------------------------- | ----------- | ----------- |
| session\_key              | String(255) | Index       |
| external\_message\_id     | String(255) | Index       |
| registered\_associate\_id | FK          | Index       |
| updated\_associate\_id    | FK          | Index       |

## Relationships

| Table                    | Description                                                                  |
| ------------------------ | ---------------------------------------------------------------------------- |
| [associate](./associate) | Employees, resources and other users - except for External persons           |
| [sms](./sms)             | This table will hold outgoing sms messages when transmitted with WebServices |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [Send Messages](/en/api/reference/restful/agent/messaging_agent/send-messages.md)
- [Send Messages With Config](/en/api/reference/restful/agent/messaging_agent/send-messages-with-config.md)
- [NSMessageDeliveryStatus](/en/automation/crmscript/reference/CRMScript.NetServer.NSMessageDeliveryStatus.md)
- [SuperOffice.WebApi.Data.MessageDeliveryStatus](/en/api/reference/webapi/SuperOffice.WebApi.Data.MessageDeliveryStatus.md)
- [SuperOffice.WebApi.Data.OutgoingMessage](/en/api/reference/webapi/SuperOffice.WebApi.Data.OutgoingMessage.md)
- [SuperOffice.WebApi.Agents.IMessagingAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IMessagingAgent.md)
