Run an automation on a schedule
Section titled “Run an automation on a schedule”This how-to is for builders who need something to happen because of the time, not because someone changed a record: remind owners every morning about requests that are still waiting, archive closed tickets every night, or reset a counter on the first day of each month.
You do it with a Timer reaction. At each run it goes through the entity’s records, keeps those that match its filter, and runs its actions on each one.
You need:
- Developer access on the module, to add reactions.
- The basics of reactions. See Reactions & automation.
How a scheduled run works
Section titled “How a scheduled run works”- The reaction runs on every active record of its entity that matches its filter. Archived records are never included. With no filter, every active record is included.
- Its actions run once per record. A run over many records is worked through in batches, so it can take a while to finish.
- The filter is checked again at each run, so a condition such as Due date < @today always means the day of that run.
- When the entity has no active records, nothing runs.
A Timer reaction always works on records. To do something once with no record, use a Custom Action with Contextual turned off, started from a button. See Run from a button.
Step 1: Add the reaction and choose the timing
Section titled “Step 1: Add the reaction and choose the timing”- Open the entity’s Reactions tab and add a reaction. See Add a reaction.
- In Event, choose Timer.
- In Interval type, choose:
- One Time — then pick the Timer Date: the date and time of the single run. It cannot be in the past.
- Repeat — then write a Cron Expression, and optionally a Start Date and an End Date. Before the start date nothing runs; after the end date the schedule stops for good.
Step 2: Write the cron expression
Section titled “Step 2: Write the cron expression”A cron expression has five parts, separated by spaces:
minute hour day-of-month month day-of-week| Part | Allowed values |
|---|---|
| minute | 0–59 |
| hour | 0–23 |
| day of month | 1–31 |
| month | 1–12 |
| day of week | 0–6 (0 is Sunday) |
Each part is one of: * (every), a single number, or */n (every n). Ranges such
as 1-5, lists such as 1,15, names such as MON, and a seconds part are not
accepted — the form shows Cron expression is invalid.
| You want | Cron Expression |
|---|---|
| Every day at 06:00 | 0 6 * * * |
| Every hour, on the hour | 0 * * * * |
| Every 15 minutes | */15 * * * * |
| Every Sunday at 07:30 | 30 7 * * 0 |
| On the 1st of every month at 00:00 | 0 0 1 * * |
| On 1 January at 00:00 | 0 0 1 1 * |
To run on several weekdays — for example Sunday to Thursday — add one Timer reaction per day, or run every day and let the filter decide.
Time zone. The cron times follow the server’s clock, not the time zone of the person who wrote the reaction. In most installations that is UTC. Check the time of the first run in the reaction’s history and adjust the hour if needed. In a scheduled run, date pointers such as @today and @StartOfDay also start the day in UTC.
Step 3: Narrow it with a filter
Section titled “Step 3: Narrow it with a filter”Add a filter so the run only touches the records that need it. Date pointers make the filter move with the date:
| You want the run to act on | Filter |
|---|---|
| Requests still waiting after three days | Status = Waiting, and Creation date < the expression scope.today('-3d') |
| Tasks due today | Due date >= @StartOfDay, and Due date < the expression scope.StartOfDay('+1d') |
| Closed tickets older than 30 days | Status = Closed, and Closed on < the expression scope.today('-30d') |
| Contracts ending this month | End date >= @StartOfMonth |
A pointer such as @today is picked from the Pointer value source. To move
it by a number of days, choose Expression instead and write the scope. form
with an amount, such as scope.today('-3d'). See
Pointers: the @ form and
Build the conditions.
Step 4: Add the actions
Section titled “Step 4: Add the actions”Add the actions that each matching record needs, then save.
Recipe: remind owners every morning
Section titled “Recipe: remind owners every morning”- Timing: Repeat,
0 6 * * *. - Filter: Status = Waiting, and Creation date <
scope.today('-3d'). - Action: Send Notification to the request’s Assigned to field, with a
message such as
Request {{no}} has been waiting since {{created}}. See Insert record values into messages.
Recipe: archive closed records every night
Section titled “Recipe: archive closed records every night”- Timing: Repeat,
0 1 * * *. - Filter: Status = Closed, and Closed on <
scope.today('-30d'). - Action: Archive Data Entry on Self.
The next night these records are archived, so they are no longer included.
Recipe: close resolved requests after a week
Section titled “Recipe: close resolved requests after a week”- Timing: Repeat,
0 2 * * *. - Filter: the workflow step is Resolved, and Resolved on <
scope.today('-7d'). - Action: Execute Workflow Step Action, with the Close action. See Move the workflow on.
Recipe: a one-off change at a set time
Section titled “Recipe: a one-off change at a set time”- Timing: One Time, with the Timer Date — for example the start of a new price list.
- Filter: the records the change applies to.
- Action: Update Data Entry on Self, with the new values.
Who it acts as, and where
Section titled “Who it acts as, and where”- Event Executor Type decides whose authority the actions use. A scheduled run has no person behind it: without System, it acts as the person who last saved the reaction. Choose System when the actions need full rights.
- Execution Spaces offers Root Space, All Spaces Except Root and All Spaces; the default is Root Space. Each space in scope gets its own run. The spaces are fixed when you save, so after adding a space, save the reaction again. See Design an app for several branches.
- On an entity with sensitive fields, choose Auto or Privileged as the Sensitive Data Access Policy. User-Based cannot be chosen for a Timer.
Change or stop a schedule
Section titled “Change or stop a schedule”- Changing the filter or the actions takes effect at the next run.
- Changing the timing, the spaces, or turning the reaction off replaces or removes the schedule. Batches already queued from a run are skipped once it is turned off.
- Deleting the reaction, or the entity, removes the schedule.
Check the result
Section titled “Check the result”- While you test, set a One Time run a few minutes ahead, on a filter that matches one test record.
- After that time, open the reaction’s run history. See Check that it ran.
- When it works, switch to Repeat with the real schedule.
Troubleshooting
Section titled “Troubleshooting”| Problem | What to check |
|---|---|
| Cron expression is invalid | It must have five parts, each *, a number or */n. Ranges, lists and names are not accepted. |
| It runs at the wrong hour | The cron follows the server’s clock, usually UTC. Shift the hour. |
| It never runs | The Start Date is still ahead, the End Date has passed, the reaction is turned off, or no active record matches the filter. |
| It changed records it should not have | The filter is missing or too wide. Every active record is included when there is no filter. |
| An archived record is not handled | Timer runs never include archived records. |
| It does not run in a new space | The spaces were fixed when you saved. Save the reaction again. |
| An action fails for lack of rights | It acts as the person who last saved it. Set Event Executor Type to System. |
See also
Section titled “See also”Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27