Run Workflow

The Run workflow node starts another workflow of the same project and, by default, waits for its result. Use it to call shared logic, such as pricing an order or running an approval, instead of repeating those steps in every workflow.

Ask NocoAI

Copy a prompt, paste it into NocoAI in any base, and replace the words in [brackets] with your own.

  • When an order is created, run [Price an order] with the [order id]
  • Call [Enrich customer] and put what it returns into [Company size]
  • Run [Send approval] and continue even if it fails

Before you begin

The workflow you call must have the When called by another workflow trigger, and it must be turned on. The Workflow list offers only the workflows of this project that meet both conditions.

Configuration

  • Workflow: The workflow to run.
  • Inputs: A value for each input that the called workflow declares. The input names come from its trigger.
  • Wait for result: On by default. The step waits for the called run to end and gives you what it returned. Turn it off to start the run and carry on at once.
  • Timeout (minutes): How long to wait. Shown only while Wait for result is on. The default is 60 minutes and the longest is 30 days.
  • If the workflow fails: Fail this step, the default, stops this workflow. Continue with the error carries on, with the error in the output of the step.

Run workflow node that calls Price a campaign with two inputs and waits for the result

What the step gives back

OutputContent
runIdThe id of the run that was started
statusqueued, completed, error, cancelled, timeout or skipped
returnedWhether the called workflow sent a reply
bodyWhat its Respond step returned
statusCodeThe status code of that reply
errorWhy the run failed

With Wait for result off, the status is queued and there is no body: nothing waits for the run to end.

A called workflow that finishes without a Respond step counts as completed, with returned false and an empty body. When the timeout passes, NocoDB cancels the called run and the step reports timeout.

Good to know

  • The called workflow runs in the same project. A workflow in another project cannot be called.
  • A workflow cannot call itself, and NocoDB stops a chain of workflows and agents that start each other after 3 runs. A further call is reported as skipped.
  • A workflow cannot call one that runs as a user with a higher project role than its own.
  • An input cannot pass a sensitive base variable. The step fails. The called workflow can read the variable itself.
  • Testing the step from the editor does not start the called workflow. The step reports skipped.
  • The step does not retry, even when Retry if this step fails is on.
  • Cancelling the calling run also cancels the run it waits for.
  • Each called run counts against the workflow run limit of your plan, the same as any other run.
  • The run history of the caller links to the run it started, and the called run names the workflow that started it.

Use cases

  • Price an order or score a lead from several workflows with one set of steps
  • Run one approval path from every workflow that needs an approval
  • Split a long automation into parts that are easier to test and retry

Availability

  • Available on NocoDB Cloud (Plus plan and above) and licensed on-premise deployments.

Last updated on

Latest product updates?See Changelog
Stay in the loop? Follow us onLinkedInLinkedInYouTubeYouTubeXX