Get workflow run data
In workflows that require workflow run data, you can use the Get workflow run data action to retrieve information about a specific workflow run. This action is different from other Get data actions because it retrieves data for only a single workflow run rather than a list of resources.
On this page
Configuration
Fields
The Get workflow run data action doesn't require any fields.
Returned data
The Get workflow run data action returns data for a single workflow run. The returned data includes information the following variables:
| Variable name | Description |
|---|---|
| id | The GID of the workflow run. |
| legacyResourceId | The legacy ID of the workflow run. |
| retryAttemptCount | The number of retry attempts of the workflow run. |
| startedAt | The time the workflow run started in UTC. |
| triggerEvent | The event that triggered the workflow run. This is an object that contains the following fields: id, source, and triggeredAt. |
| url | The URL of the workflow run. |
| workflow | The workflow that the workflow run belongs to. This is an object that contains the following fields: id, legacyResourceId, name, tags, url, and version. |
To access the returned data in steps that follow this action, use the variable named Get workflow run data. For example, you can reference the workflow run status in a Send internal email action:
Workflow Run Status: {{ getWorkflowRunData.url }}
Workflow Name: {{ getWorkflowRunData.workflow.name }}
Run Time: {{ getWorkflowRunData.startedAt }}Triggers
You can use this action in any workflow, including the Scheduled time trigger. In a workflow that uses the Scheduled time trigger, the workflow starts at a time that you've specified, rather than as a result of an event. Because there is no specific event in your store or from an app that starts the workflow, there is no data automatically included.