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)


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.

Once on entire result set

To generate a digest of all rows returned, you can iterate over the ROWS object and reference column names
View code
{{ #ROWS }}
Count: {{ count }}
Amount: {{ amount }}
Payment: {{ payment_status }}
Event: {{ event }}
{{ /ROWS }}
This generates the following Slack digest:

For each row

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:
View code
A large transaction has been found
ID: {{ ROW_ID }}
Amount: {{ ROW_AMOUNT }}
Category: {{ ROW_CATEGORY }}
Created at: {{ ROW_CREATED_AT }}
Please go here to approve or reject:{{ROW_ID}}
Here's how the Slack notification actually looks:
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).

Indexing into object

LogicLoop supports dot notation when your information contains nested fields. You separate the identifiers with the period (.) symbol as the membership operator.
View code
{{ #ROWS }}
Zip Code: {{ }}
{{ /ROWS }}

Indexing in a 'For Each Row' column object

Dot notation is also supported in 'For Each Row' results. You can also iterate through individual results that contain lists or arrays.
View code
{{ #ROW_USER }}
Name: {{ name }}
Street: {{ address.street }}
Zip Code: {{ }}
{{ /ROW_USER }}