StableAction
Run workflow
Overview
Starts one of your workflows from the interface and waits for it to finish, with optional inputs.
Purpose
Workflows run on the server with full access to data, email, APIs and AI. Use this action to trigger multi-step logic from a button — approve a quote, generate an invoice, send a reminder — and keep the button simple.
Inputs
- Workflow — an enabled workflow. Workflows with the trigger “Run manually / from an action” are the natural fit, but any enabled workflow can be run.
- Inputs — named values passed to the workflow. Inside the workflow they are
Event › name/{{event.name}}. The current record (row, detail page) is also passed as the workflow's Current record.
Configuration
- Build and test the workflow first (Logic → Test run).
- Add Refresh data afterwards if the workflow changes records (all data is refreshed automatically after a run).
- Show a message with the result, or branch with If / else on a result value.
Outputs
- Action results › <key> / last result — the workflow's saved results (everything its steps stored with “Save result as”), for example
{{results.last.invoice.id}}.
Example
Approve a quote
Example
Button “Approve” (on /quotes/:id) › On click:
1. Run workflow
Workflow: Approve quote and create job
Inputs: approvedBy = Current user › name
2. Show message “Quote approved — job created”Errors
- “Workflow not available.” — the workflow was deleted or is disabled.
- “<step name>: <error>” — a step failed; the run is recorded in Run history with the failing step.
- Your own message — the workflow reached a Stop with message step (e.g. “Sorry — this event is full.”). Forms show it as an error; later actions in the list don't run.
- Rate limit: 30 workflow runs per minute per user.
Limitations
- The button waits until the workflow completes (steps can wait up to 10 s each). Workflows cannot call themselves more than 3 levels deep.
- The workflow runs with the current user's permissions for actions it performs.
Advanced
- Schema:
{ type: "run_workflow", workflowId, input?, resultKey? }. Server-side:runWorkflow(ctx, wf, { type: "manual", input, record, entityId }); a failed run throws with the run error; the responseresultis the run'sresultsmap.