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

# Enum BadgeType

> Value for field 'badge' in table 'ej_message'. Defines the initial source of a message.

Value for field 'badge' in table 'ej\_message'. Defines the initial source of a message.

## Syntax

```crmscript theme={null}
BadgeType
```

## Fields

| Name     | Description                                            |
| -------- | ------------------------------------------------------ |
| Unknown  | Initial message source is unknown                      |
| Reply    | Message created as a reply                             |
| Forward  | Message created as a forward                           |
| Comment  | Message created as an internal comment                 |
| Incoming | Message created as a result of other events processing |
| Outgoing | Message created as first outgoing message on ticket    |


## Related topics

- [Enum values for BadgeType](/en/database/tables/enums/badgetype.md)
- [SuperOffice.WebApi.Data.BadgeType](/en/api/reference/webapi/SuperOffice.WebApi.Data.BadgeType.md)
- [ej_message table](/en/database/tables/ej-message.md)
- [SuperOffice.WebApi.Data.SaleBoardViewSettings](/en/api/reference/webapi/SuperOffice.WebApi.Data.SaleBoardViewSettings.md)
- [SuperOffice.WebApi.Data.BoardViewBadgeType](/en/api/reference/webapi/SuperOffice.WebApi.Data.BoardViewBadgeType.md)
- [SuperOffice.WebApi.Data.TicketMessage](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketMessage.md)
