Creating trigger
template
A trigger template is created from an existing trigger. To create a trigger template, from an existing template, do the following:
- On the Developer screen in
the GENERAL group,
click Triggers.
The Triggers screen appears. - Click on the corresponding view button of a Trigger that
you want to save as a template. For more information on
viewing a Trigger, see Viewing a
trigger
- To create a template from the trigger you are
viewing, click Create template.
Add template screen appears. - On the Add trigger template
screen, add the following details
- The Name is a unique name for the template
- The Description describes the template
- The Group is a unique or existing name to categorize different trigger templates. This is an autocomplete search field to find existing group names or enter a new Group name.
- The Natural
description is a human-readable
string that includes field keys to describe
the Trigger. To include a field
key, hit the "[" key which will complete
the "[[]]" key field. The string within the brackets acts as a variable to hold the values of the keys that is used in the Natural
description.
For example: "[[thingkey1]]"
Requires SuperOPS+ permission to select theShared global checkbox to share the template with all organizations. Only SuperOPS can edit/delete a globally shared Campaign template.
- Fields will automatically
create field keys with every "[[]]"
included in the Natural
description.
- The Key is a unique name from the Natural description
- Enter a Field description that describes the field. The description you enter here is shown when you hover over the field Values in the Trigger template selector. For more information on Trigger template selector, see Adding a new trigger from templates.
- The Type is a
select box of all the types of keys
that can be included. (String, Number,
Tags, Thing key, Property key, Alarm
key, Attribute key and so on).
- After defining the fields, add the keys to the
Trigger JSON on the right.
These key values are entered while adding a new trigger from templates.
If the key is not in the Trigger JSON, it will not be used when creating a trigger.