Trigger · Subflows
Start a subflow
Starts a reusable workflow for a record, exposes incoming named inputs, and declares the outputs its caller can receive.
Subflow setup and worked example
Inputs
| Label | Key | Type | Required | Notes |
|---|---|---|---|---|
| Object | object | Object | Yes | Choose the same object the calling step uses. |
| Inputs | input_definitions | List of input names | No | Choose Add input for each text value the workflow needs. Give each input a distinct, descriptive name, such as Region or Customer segment. |
| Outputs | output_definitions | List of output names | No | Choose Add output for each text value the caller will receive, such as Owner email. Return values follow this order. |
Outputs
| Label | Key | Type | Always set | Notes |
|---|---|---|---|---|
| Record | record | Record | Yes | |
| Record ID | record_id | Text | Yes | |
| Subflow ID | subflow_id | Text | Yes | |
| Triggered at | triggered_at | Timestamp | Yes | |
| Started by workflow | started_by_workflow | Text | Yes | |
| Calling run URL | calling_run_url | Text | Yes | |
| Inputs → (your input name) | inputs.<input key> | Text | Yes | One field for each input defined on this trigger, shown under Inputs with its name. A value not supplied by the caller is empty text. |
How it behaves
- Define incoming values in
Inputsand returned values inOutputs, then turn the workflow on before selecting this subflow in aCall a subflowstep for the same object. - Use the trigger's
Inputsoutputs in the steps that follow. Callers fill these fields by name; the record is passed separately throughRecord. - Input and output names must be distinct within their own list and start with a letter. Avoid names that differ only in spacing or punctuation.
- After changing input or output definitions, turn the updated workflow on and check every calling workflow. Update return values to match the declared output order.
- A workflow can have several Neon Deer triggers, including scheduled-run and subflow triggers. The caller picker distinguishes multiple triggers in the same workflow.
- Map this trigger's
Subflow IDintoReturn from a subflowto send the result to the calling workflow.
Errors
Turning the workflow on or off fails when
- If the workflow cannot be registered, check Automations setup and your plan, then turn the workflow on again.
Triggers have no error branch. When something goes wrong inside a trigger, no run starts. See Troubleshooting.
Example
A demo-request workflow calls a shared Companies routing workflow.
| Event | Value |
|---|---|
Object | Companies |
Inputs | Region, Customer segment, Request source |
Outputs | Owner email |
| Output | Value |
|---|---|
| Record | Acme Corp (Companies) |
| Subflow ID | The ID supplied for this call |
| Inputs → Region | North America |
| Inputs → Customer segment | Enterprise |
| Inputs → Request source | Demo form |
Use the returned Subflow ID when sending values back to the caller.