StableWorkflow node
Run action
Overview
Runs one app action inside the workflow: another workflow, Send email, or Create / Update / Delete record.
Purpose
Reuse logic you already have — chain workflows together (“Approve quote” runs “Create job”) or express a data change with the familiar action editor instead of the Database step.
Inputs
- Action — exactly one action, edited with the same editor as component actions. Supported: Run workflow, Send email, Create record, Update record, Delete record. Other action types are ignored by the server.
- For Run workflow: the workflow to start and its Inputs (available in the sub-workflow as Event data). The current record is passed along.
Configuration
- Pick the action type from the Add action menu; the step shows one action at a time.
- Workflows can call workflows up to 3 levels deep; deeper calls are skipped silently.
- By default a sub-workflow that stops or fails does not stop the caller. A required call (
required: true, set from an app plan'srun_workflowstep) stops the caller with the sub-workflow's Stop message, and a sub-workflow failure fails the caller and rolls back its writes. - App plans can repeat a call over a list (
run_workflowwithforEach): it compiles to a Repeat for each step whose Each path is this step.
Outputs
- Run workflow: the sub-workflow has its own run in Run history. Nothing is stored unless the step has a result key (
resultKey, written asasin an app plan'srun_workflowstep): then the sub-run's results are saved as{{results.<key>}}. Email and record actions behave exactly like the Send email / Database steps and produce their outputs.
Example
Chain two workflows
Example
Trigger: Quotes › A record is updated › only when Status changes
Step 1 If / else: Current record › Status is “approved”
Yes → Step 2 Run action: Run workflow “Create job from quote” (Inputs: quoteId = {{record.id}})Errors
- A missing target workflow is skipped without error (a required call fails instead).
- Email and record actions fail with the same messages as their dedicated steps (invalid recipient, validation errors…).
Limitations
- Browser-only actions (Go to page, Show message, Set state…) cannot run in a workflow and are ignored.
- When a step fails, the run stops there, is marked failed in Run history with the step name and error, and the remaining steps are skipped.
Advanced
- Config:
{ action: Action, required?: boolean, resultKey?: string }. The executor mapssend_emailto the email step,create_record/update_record/delete_recordto the database step (operation = type without "_record"), andrun_workflowtorunWorkflow(ctx, sub, { type: "manual", input, record, entityId }, depth + 1)whiledepth < 3— inside the caller's data lock and transaction. Withrequired, a stopped sub-run throwsWorkflowStop(same message) and a failed one throws (the caller fails and rolls back);resultKeystores the sub-run'sresults. The public demo sandbox mirrors this.