> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scheduled Events

> Scheduled Events can be used to trigger actions within FlexDeploy or in other applications based on user defined time intervals. FlexDeploy offers the

Scheduled Events can be used to trigger actions within FlexDeploy or in other applications based on user-defined time intervals. FlexDeploy offers the ability to execute any groovy script functions when the scheduled time is reached. For example, you can setup a Function to send out monthly reports on deployment history of environments over email. The flexibility of groovy scripts and FlexDeploy’s model allows users to accomplish exactly what they need.

## Scheduled Events Flow

In order to take advantage of FlexDeploy’s Scheduled Events, you must first create a Function. When creating a function, setup a cron expression that specifies the interval of when the script will be executed. Once the next execution time specified by the cron expression is reached, FlexDeploy will automatically execute the script belonging to the function.

## Navigation

Scheduled Events can be accessed from **Administration → Scheduled Events**. This will show the [Scheduled Event Messages](https://docs.flexagon.com/flexdeploy-11-1-documentation/flexdeploy-users-guide/administration/scheduled-events/scheduled-event-messages.md) that have been executed in FlexDeploy in the last week. You can click on any row to see more information about the scheduled event's execution or resubmit the message for debugging.

![image-20240215-182530.png](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12590919918.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=b983b9c814d143719f3d42689adb9408)

To configure Scheduled Events, we can press the :Config\_button:button in the top right. This will take us to the page that will show all the [Scheduled Event Functions](https://docs.flexagon.com/flexdeploy-11-1-documentation/flexdeploy-users-guide/administration/scheduled-events/scheduled-event-functions.md) configured in FlexDeploy. You can create a new function by clicking the :Create\_Button: button on the page.

![image-20240215-171024.png](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12590919915.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=691bbcfe3c3db2c2ee960dcd2e70c53c)

## Related Articles

* [Scheduled Event Functions](https://docs.flexagon.com/flexdeploy-11-1-documentation/flexdeploy-users-guide/administration/scheduled-events/scheduled-event-functions.md)
* [Scheduled Event Messages](https://docs.flexagon.com/flexdeploy-11-1-documentation/flexdeploy-users-guide/administration/scheduled-events/scheduled-event-messages.md)
* [Scheduled Event Context Variables and Methods Reference](https://docs.flexagon.com/flexdeploy-11-1-documentation/flexdeploy-users-guide/administration/scheduled-events/scheduled-event-context-variables-and-methods-reference.md)
