Create a record template
Create a template that fills fields on a record when an agent selects it, or when a scheduled template creates the record.
A record template sets a list of field values on a record of one table, for example the priority, assignment group and classification of a standard incident. Create one when agents fill in the same values repeatedly, or when a scheduled template must create records.
Before you begin
- You need the
administratorrole. Template values can run server scripts, so only administrators define templates. Every agent withplatform_agentcan use them. - Know the table, and for each field the value to set. A choice field takes the choice key, not the label, and a reference field takes the record ID.
Steps
-
In the Administration workspace, select Catalog & templates → Templates → New template.

The New template item in the Catalog & templates menu. -
Enter a Name. Agents see it in the template list when the template is client selectable.

The empty Create System template form, with the System Template Values list below it. -
Select the Table the template is for, for example Incident.
-
Set Client selectable. Yes makes the template available on the record form. No keeps it for scheduled templates only.
-
Enter a Description of what the template does, and an Order if several templates share a name.
-
Select Create. The template record opens.
-
In the System Template Values list, select New and choose the Field to set.

A client-selectable record template with three System Template Values and the New button below them. -
Enter the Stored value, or turn on Advanced and write a Script whose last line is the value. The value patterns are in Record template fields.
-
Choose Overwrite existing value. Yes replaces a value already on the record. No fills the field only when it is empty.
-
Save the value, and repeat for each field the template sets.
Result
A client-selectable template appears for agents on records of its table. When an agent selects it, the active values are applied to the record. Every template is listed under Catalog & templates → Templates → All templates, with All client templates and All server templates filtered by Client selectable. To run the template on a timetable, add it to a scheduled template. To start a similar template, open one and select Copy template. The copy opens as a new template.