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.

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:

Variables returned by the Get workflow run data action.
Variable nameDescription
idThe GID of the workflow run.
legacyResourceIdThe legacy ID of the workflow run.
retryAttemptCountThe number of retry attempts of the workflow run.
startedAtThe time the workflow run started in UTC.
triggerEventThe event that triggered the workflow run. This is an object that contains the following fields: id, source, and triggeredAt.
urlThe URL of the workflow run.
workflowThe 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.