---
title: "Schedule a record template"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/catalog/templates/scheduled-templates/
type: task
application: template
last_updated: 2026-12-03
commit: 6777698daac5
---


A scheduled template creates records from record templates on a timetable, for example a monthly security patching task. Set one up when the same record must be raised regularly, with values that can vary through parameters.

<Callout type="info">
  **Changed in 2027.1.** **New scheduled template** and **All scheduled templates** are shown to administrators only. No action is needed on upgrade.
</Callout>

## Before you begin

- You need the `administrator` role.
- The record templates to run must exist. See [Create a record template](page:catalog/templates/record-templates).
- Decide the user the records are created as. That user needs permission to create records on the template's table.

## Steps

<Steps>
  <Step>
    In the Administration workspace, select **Catalog & templates → Templates → New scheduled template**.

    <Image src="asset:screenshots/admin/catalog-templates-scheduled-templates/nav-new-scheduled-template.png">The New scheduled template item in the Catalog & templates menu.</Image>
  </Step>
  <Step>
    Enter a **Name** that says what the scheduled template is for, for example "Monthly patching task". The name is not used for anything else.

    <Image src="asset:screenshots/admin/catalog-templates-scheduled-templates/create-scheduled-template.png">The Create Scheduled Template form with Name, Schedule, Active, Run as, Templates and Context script.</Image>
  </Step>
  <Step>
    Set the **Schedule**. The schedule picker builds a cron expression, so you do not need to write one. For example, `0 0 1 1/1 * ? *` runs at 1 AM on the first day of each month. Schedules run in the system time zone.
  </Step>
  <Step>
    In **Run as**, select the user the records are created as. The field is required. That user appears as the creator of each record.
  </Step>
  <Step>
    In **Templates**, add the record templates to run.
  </Step>
  <Step>
    Write the **Context script**. It returns an array of parameter objects in `answer`. Each template runs once for every object in the array. Even with no parameters, include `answer = [{}];`.

    ```javascript
    answer = [{Details: current.Name(), Priority: "3"}];
    ```

    Template values use the parameters as `${Details}` and `${Priority}`. The context script can read fields you add to the scheduled template record itself through `current`.
  </Step>
  <Step>
    Leave **Active** set to **Yes** and select **Create**.
  </Step>
</Steps>

## Result

At each scheduled time, Servicely creates one record per template for every object the context script returns, with the template values applied and parameters filled in. In the example, a template whose **Short description** value is `${Details}` and whose **Priority** value is `${Priority}` creates a record named after the scheduled template, with priority 3. All scheduled templates are listed under **Catalog & templates → Templates → All scheduled templates**.

## Related

- [Create a record template](page:catalog/templates/record-templates)
- [Record template fields](page:catalog/templates/record-template-fields)
- [Create a schedule](page:automation/service-levels/schedules)
