Step · Subflows
Call a subflow
Calls a workflow for a record and optionally waits for its returned status and values.
Subflow setup and worked example
Inputs
| Label | Key | Type | Required | Notes |
|---|---|---|---|---|
| Object | object | Object | Yes | |
| Subflow | workflow_id | Workflow | Yes | Choose an active Start a subflow trigger for this object. Use its subflow name to distinguish starting points within one workflow. |
| Record | record | Record | Yes | |
| (your input name) | named_inputs.<input key> | Text | No | One field for each input declared on the selected Start a subflow trigger. Map text values from earlier steps or enter text directly. Unfilled inputs arrive as empty text. |
| Timeout | timeout_minutes | Choice | No | Shown when waiting for a result. Defaults to 15 minutes; choose a shorter wait if needed. The calling step fails if no result arrives before the selected timeout. |
| Wait for a result | wait_for_result | Checkbox | No | Selected by default. Clear to continue immediately without returned values. |
Outputs
Outcome returned (returned)
| Label | Key | Type | Always set | Notes |
|---|---|---|---|---|
| Status | status | Text | Yes | The status returned by the subflow: succeeded or failed. |
| Outputs → (your output name) | outputs.<output key> | Text | Yes | One field for each output declared on the selected Start a subflow trigger, shown under Outputs with its name. |
Outcome started (started)
No output fields.
How it behaves
- The selected subflow defines which named input fields appear. Map the values it needs from earlier workflow steps; these become
Inputsoutputs in the called workflow. - Pass the Attio record through
Record. Named inputs carry additional text values; named outputs carry text back to the waiting caller. - By default the calling step waits for
Return from a subflowand exposes itsStatusand namedOutputs. - A waiting call has a 15-minute maximum. If the subflow does not return within the selected
Timeout, the calling step fails. For a longer-lived subflow, clearWait for a result. - With
Wait for a resultclear, the calling workflow continues immediately with no returned fields. The subflow continues on its own. - After changing input or output definitions on the called workflow, choose the subflow again in each calling step. Check input mappings and later steps that use returned outputs.
- A returned
Failedstatus is a value the calling workflow can branch on. A call that cannot start or does not receive a return fails the waiting step instead.
Errors
Fails when
- Choose a record of the selected object and an active subflow for that object.
- If the subflow cannot start, check its trigger, connection, and plan access. Review both workflows before retrying work that may already have changed records.
- If inputs or outputs have changed, open the calling step, choose the subflow again, and check its mappings. Review any work already completed before retrying.
For errors that every step can return, see Troubleshooting.
Example
Reuse the Companies routing workflow and wait for its selected owner.
| Input | Value |
|---|---|
| Object | Companies |
| Subflow | Route company owner |
| Record | Acme Corp (Companies) |
| Region | North America |
| Customer segment | Enterprise |
| Request source | Demo form |
| Wait for a result | On |
| Timeout | 15 minutes |
| Output | Value |
|---|---|
| Status | succeeded |
| Outputs → Owner email | owner@example.com |
Owner email is declared on Start a subflow. Its value comes from Return from a subflow in the called workflow.