Step · Subflows
Return from a subflow
Sends a status and output values back to the workflow that called this subflow.
Subflow setup and worked example
Inputs
| Label | Key | Type | Required | Notes |
|---|---|---|---|---|
| Subflow ID | subflow_id | Text | Yes | Map Subflow ID from this run's Start a subflow trigger. |
| Status | status | Choice: Succeeded or Failed | No | Defaults to Succeeded. |
| Outputs | outputs | List of text values | No | Choose Add output and map each value in the same order as the named outputs declared on Start a subflow. |
Outputs
No output fields.
How it behaves
- Declare output names on
Start a subflow. Add their values here in that declaration order; the waiting caller receives them under those names inOutputs. - The result goes back to the waiting Call a subflow step, not to a separate recipient.
- The first return decides the result; later returns do not replace it.
- When the caller chose not to wait, no result is sent back to it.
Errors
Fails when
- Use the Subflow ID from this run's trigger rather than an ID copied from an earlier run.
- If returning fails, check the connection and the runs of both workflows before retrying.
- If outputs have changed, check this step against the output definitions and order on Start a subflow before retrying.
For errors that every step can return, see Troubleshooting.
Example
Send a selected owner back to the calling workflow.
| Input | Value |
|---|---|
| Subflow ID | Map from Start a subflow |
| Status | Succeeded |
| Outputs | First value: owner@example.com |
Declare Owner email as the first output on Start a subflow, then supply its value first here. The caller receives Outputs → Owner email.