Creating trigger template

A trigger template is created from an existing trigger. To create a trigger template, from an existing template, do the following:

  1. On the Developer screen in the GENERAL group, click Triggers.
    The Triggers screen appears.
  2. 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
  3. To create a template from the trigger you are viewing, click Create template.

    Add template screen appears.
  4. On the Add trigger template screen, add the following details
    1. The Name is a unique name for the template
    2. The Description describes the template
    3. 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.
    4. 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.


    5. Fields will automatically create field keys with every "[[]]" included in the Natural description.

      1. The Key is a unique name from the Natural description
      2. 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.
      3. 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).
  5. 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.