Accessing Context
Context variables can be accessed using curly braces ({{ }}
). You can use these variables directly in triggers, steps, and actions. The context includes:
- Alert Data: Access data from the alert triggering the workflow.
- Incident Data: If the workflow is incident-based, you can access the incident’s attributes.
- Steps and Actions Results: Retrieve data produced by previous steps or actions using their unique IDs.
Alert Data
You can access attributes of the alert anywhere in the workflow:Incident Data
For incident workflows, access incident-related context:Steps Results
Access results from previous steps:Action Results
Retrieve data from completed actions:Constants
Define reusable values in the workflow and access them:Using Context in Loops
When iterating over data in aforeach
loop, the context provides foreach.value
for the current iteration.
For example: