evalinkdocs

Data you can use

The data a template can use: the alarm and its site, the workflow, the results of earlier steps, the contact being called, and your company's environment variables.

To see what a value holds, print it as JSON with dump():

{{ dump(alarm.headers) }}

In a text field, press Ctrl+Space to see the names the field offers, including your company's custom fields.

The alarm and its site

Every text about an alarm can use these. In templates, the site is called device.

{{ alarmCode }} ({{ alarm.alarmName }}) at {{ device.name }}, zone {{ alarmZone }}
{{ alarm.timestamp | date('dd.MM.yyyy HH:mm') }}

Output for a burglary alarm in zone 3 "Front door" of the site "Shop Bahnhofstrasse":

BA (Burglary) at Shop Bahnhofstrasse, zone 3 Front door
04.04.2025 14:14
Name Holds
alarmCode The alarm code, or "unknown" if there is none
alarmZone, alarmPartition Number and name, for example 3 Front door
address The customer's name and address of the site
now The current time, in milliseconds
lang The language of the text, default en
alarm The alarm, see below
device The site, see below. Empty when the text has no site.
Fields of alarm
Field Holds
id, shortId, deviceId Ids of the alarm and its site
alarmCode, eventCode, alarmMsg, payload Code, event code, message and raw payload
alarmName, alarmDescription, eventName Name and description of the code, in the language of the text
alarmStatus, alarmValue, testMessage, technical, alarmType, severity, outcome Status; alarmValue is true for an alarm, false for a restore
timestamp, date, alarmStoredTimestamp, alarmStoredDate When the alarm happened and when it was stored
alarmZone, alarmZoneName Zone number and name
partition, partitionName Partition number and name
user, userName The panel user
headers The alarm's headers, see Alarm headers
Fields of device (the site)
Field Holds
id, evalinkDeviceId, name, active, testMode, timeZone The site itself; evalinkDeviceId is the site's ID, for example Site-001
customerNumber, customerCompany, customerFirstName, customerLastName, customerPhone, customerEmail, customerStreet, customerZip, customerCity, customerState, customerCountry The customer
installerCompany, installerFirstName, installerLastName, installerEmail, installerPhone The installer
tags The site's tags, as a list
attributes The site's custom fields, by name

Custom fields of the site

Read a custom field by its name. Use brackets when the name has spaces or dashes:

Key box: {{ device.attributes['key-box'] | default('none') }}

Alarm headers

Receivers add headers to an alarm, for example which receiver and channel it came in on. Header names usually contain dashes, so use brackets:

{{ alarm.headers['x-receiver'] }}

Output: dc09:2-6910. To see all headers of an alarm, use {{ dump(alarm.headers) }}.

The workflow

In workflow steps you can also use:

Name Holds
workflowId, companyId Ids of the workflow and the company
automated true in an automated workflow
handleAlarm true when the workflow handles its alarm
eventLog The event log entry that started the workflow, if any
userId, userName The user who runs the step, in manual workflows

Results of earlier steps

Each step's result is available under its Step Reference. If you leave the Step Reference empty, it is the step type in camelCase: a Retrieve Alarms step is retrieveAlarms.

{{ guardCheck.answer }} – {{ guardCheck.remark }}

Output, for a Yes/No step with the reference guardCheck: yes – Guard on site.

Field Holds
The step's own fields Depend on the step; see them with {{ dump(guardCheck) }}
remark The operator's remark
completedBy, completedAt Who completed the step and when (milliseconds)
executionCount How often the step ran in this workflow
answer, selection Decision steps: the chosen answer and its number

For the results of Twilio call and verification steps and of the Form step, see Examples.

Give steps you refer to a Step Reference of letters, digits and _, starting with a letter, for example guardCheck or call_2. A reference with a dash, or one that starts with a digit, can't be used in a template. Don't use the names alarm, device, headers, now or address as references.

A step that runs more than once keeps only its latest result. A workflow keeps the 50 most recent step results.

The contact being called

In the texts of Twilio calls and SMS, currentContact is the contact being reached. The text is filled in once per contact.

Hello {{ currentContact.name }}, alarm at {{ device.name }}.
Field Holds
name, description, email The contact
codeWord The contact's code word

Environment variables

Keep a value in one place and use it in many steps: create it in Company Settings › Environment Variables, then insert it by name:

{{ env('SERVICE_URL') }}
  • The value is filled in when the workflow runs. In editors and previews, the text stays {{ env('SERVICE_URL') }}.
  • A variable that doesn't exist or is disabled makes the step fail.
  • A Secret variable is filled in only in the Trigger Web Hook step, at the moment it sends. Use secrets for tokens and passwords there, and don't add filters to them:
Authorization: Bearer {{ env('API_TOKEN') }}