Workflow helper objects for retrieving data
This reference lists the Workflow helper objects you can use to query related data within a workflow.
Workflow provides the following helper objects for you to query the related data within a workflow:
WorkflowInstance: Data of the current workflow run
WorkflowSetup: Setup data of the workflow version
TaskInstance: Data of the workflow task instance
Credentials.zuora: Information about the user who issued the workflow run
You can use Liquid to query against the above objects.
For example, the following query can be used in a Retrieve: Data Query task to retrieve the result of the current workflow run:
Select * from workflow_task where workflowid = {{ WorkflowInstance.id }}This query leverages {{ WorkflowInstance.id }} to retrieve the current Workflow run ID.