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

# CRMScript event model

> CRMScript event model

The event model was introduced in version 4.2. The scripts are connected to events by setting the **include-id** of the script to values recognized by the system.

Currently, only event scripts for pages are supported, which are in the `HtmlPage.` namespace. In the future, other events, such as database saving or loading may be supported by using other namespace areas.

<Note>
  This feature requires a license for [Development Tools][1] or the CRM Suite **Core** plan.
</Note>

[1]: /en/admin/license/expander-services

## Events

* [Email filter][1]
* [Mailbox event, executed after message is saved][3]
* [Mailbox event, executed before message is saved][2]
* [Saving a request][4]

[1]: ./email-filter

[2]: ./mailbox-before-save

[3]: ./mailbox-after-save

[4]: ./saving-a-request


## Related topics

- [Mailbox event, execute before message is saved](/en/automation/event-model/mailbox-before-save.md)
- [Mailbox event, execute after message is saved](/en/automation/event-model/mailbox-after-save.md)
- [Email filter](/en/automation/event-model/email-filter.md)
- [Saving a request](/en/automation/event-model/saving-a-request.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [CRMScript webhooks event handlers](/en/automation/webhook/dev/crmscript-handlers.md)
- [NSCategorizationModelDetails](/en/automation/crmscript/reference/CRMScript.NetServer.NSCategorizationModelDetails.md)
