Subflow
Changes dataVersion 2
Calls another flow with the values you pass, and continues with its result.
Settings
| Setting | What it is |
|---|---|
| FlowRequired | Every flow but this one is offered, except those that would loop back. A test run calls its test version, a production run its production version. |
| When it runs | Waiting hands the called flow's result to the next step. Starting it hands on its run id, and the called flow runs on its own. |
| Parameters | One value per parameter the called flow declares; a value can come from an earlier step. Leave a row empty to use its default. |
| In editor runs, call | When you press Execute here: call the called flow's published test version, or its draft as it is saved now, with its pins — so you can try both flows together before publishing. Test and production runs always call its published version. |
Technical details
| Key | Value |
|---|---|
flowId | texta flow id from `requires.flows` |
mode | "wait" or "detach", by default "wait" |
params | object (any keys), by default {} |
editorRuns | "version" or "draft", by default "version" |
Output
What this node gives depends on the data it gets.
Sample output, and the expression for each field
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"editorRuns": "version",
"flowId": "<flow>",
"mode": "wait",
"params": {}
},
"label": "Subflow",
"type": "core.callFlow",
"version": 2
}Older versions
A flow that already has this version keeps running it. A new step always gets the newest.
Version 1
| Setting | What it is |
|---|---|
| FlowRequired | Every flow but this one is offered, except those that would loop back. A test run calls its test version, a production run its production version. |
| When it runs | Waiting hands the called flow's result to the next step. Starting it hands on its run id, and the called flow runs on its own. |
| Parameters | One value per parameter the called flow declares; a value can come from an earlier step. Leave a row empty to use its default. |
Technical details
| Key | Value |
|---|---|
flowId | texta flow id from `requires.flows` |
mode | "wait" or "detach", by default "wait" |
params | object (any keys), by default {} |