Comment on page
Templating
For all of your actions, you can customize the notifications that are sent downstream to contain all the relevant information the destination needs to know about. You can inject these parameters into your action subscriptions within curly braces:
{{ ACTION_URL }}
- The action page url (string){{ RULE_URL }}
- The corresponding rule page url (string){{ ROWS }}
- The rule query result data (JSON array)
When creating or editing an action subscription, input boxes that support template parameters will have a button on the right to bring up your available template parameters. Select the parameter you wish to use in your subscription.

LogicLoop provides autocomplete suggestions for template parameters when editing action or ticket action subscriptions. The parameter options will automatically appear below once you type the opening curly braces.

To generate a digest of all rows returned, you can iterate over the
ROWS
object and reference column names 
This generates the following Slack digest:

If your action is configured to raise a notification for each individual row returned (as opposed to once on the entire result), you will also have access to these additional parameters:
{{ ROW }}
- Data of the specific row returned (JSON dict){{ ROW_[COLUMN_NAME] }}
- The specific value of that column in that row (string)
Your action must be set to trigger for each row returned to access these variables.

The following example operates against a query that returned results with this structure:

Here's an example of a Slack notification template with injected parameters:
.png?alt=media&token=023e33cc-fabc-4077-9f9f-0af79c41c6ec)
Here's how the Slack notification actually looks:
.png?alt=media&token=0e4a585f-9f8a-4028-b4d8-33b185d82650)
If you choose not to customize and leave the configuration fields blank, we will use the default system template (shown as light grey placeholders in the action subscription form).
LogicLoop supports dot notation when your information contains nested fields. You separate the identifiers with the period (.) symbol as the membership operator.

Dot notation is also supported in 'For Each Row' results. You can also iterate through individual results that contain lists or arrays.

Last modified 3mo ago