Skip to main content
Action: Run Workflow
Updated over a week ago

Overview

The Run Workflow action allows you to run another Workflow asynchronously and independently from your current Workflow. This effectively “queues” the Workflow but does not wait for a response. You can select the Workflow to run and map its inputs from the inputs or action outputs of the parent Workflow. Advanced settings allow you to conditionally run the child Workflow based on specified conditions. If the conditions are not met, you can configure a custom stop message explaining why the Workflow was not run. The outputs of the queued child Workflow are processed separately in the queued Workflow’s Table Tab.

Usage Examples

  • Queue any Workflow asynchronously - The "Run Workflow" action allows you to queue up and run any other Workflow from within your current Workflow. The queued Workflow will run asynchronously and independently from the parent Workflow that triggered it. You can use your main Workflow to set up and initiate various other Workflows and processes downstream without them interfering with the completion of the parent Workflow. The outputs of the queued Workflow will be processed separately in that Workflow's own run.

Inputs

  • Choose a Workflow - When choosing a Workflow, you’ll be able to select any Workflow from the current Teamspace. Select the Workflow you want to run.

  • Dynamic inputs - Inputs display dynamically within the action configuration section based on the Workflow you are trying to queue or run. They match the inputs required by the child Workflow. Use parent Workflow inputs or previous action outputs as input to the child Workflow.

Advanced Inputs

  • Run conditionally toggle - This toggle under the advanced settings allows you to run the child Workflow based on certain conditions rather than running it automatically. Turn the run conditionally toggle on and add one or more conditions.

  • Custom stop message - If the conditions for running the Workflow are not met, you can configure a custom message to explain why the workflow did not run. By default this message is set to “Did not run.” Edit the default "Did not run" stop message to add reasoning.

Outputs

The Run Workflow action does not directly produce any outputs in the parent Workflow where it is executed. Instead, the outputs and logs are processed and displayed within the separate, asynchronous child Workflow table tab that is being queued and run by the Run Workflow action.

Example of a conditional Workflow run that did run:

{ "queued": [ "WRUN-{example_workflow_run_id}" ], "invalid": [], "workflowConfigUUID": "WCFG-{example_workflow_config_id}" }

Example of a conditional Workflow run that did not run:

{ "queued": [], "invalid": [], "workflowConfigUUID": "WCFG-{example_workflow_config_id}" }

Troubleshooting

  • Workflow not running as expected - If the Workflow you queued using the Run Workflow action is not running as expected, check the conditions you set in the advanced settings. If the run conditionally toggle is on, ensure the condition(s) you added are being met. If the conditions are not met, the Workflow will not run.

  • Missing outputs from queued Workflow - The outputs from the Workflow you queue using the Run Workflow action will not appear in the top-level/parent Workflow. They will only be visible and processed within that separate, asynchronous queued Workflow run. To view the outputs, you need to check the table view or logs of the specific queued Workflow run itself. If you need to access the outputs of the queued Workflow in the current parent Workflow, use the Run Workflow (Inline) action instead.

  • Unable to get a predictable value for comparisons on conditional runs - The categorize action can be used to generate a predictable and stable response that can be used for evaluating a condition. This is a best practice that greatly simplifies conditional runs. The simplest way to do this is to take a value and categorize “TRUE” or “FALSE” with a description that describes your condition.

Related Actions

  • Run Workflow (Inline) - This is a standard action to run another Workflow, but unlike Run Workflow, the queued Workflow will run in line as an action of the parent Workflow that triggered it, and you’ll be able to reference the outputs of the inline Workflow in the parent Workflow. This is useful if you need to see the results of the queued Workflow.

Did this answer your question?