StableWorkflow trigger
A record is created
Overview
Starts the workflow every time a new record is saved in the chosen entity — from a form, an action, the data editor, a CSV import or another workflow.
Purpose
Welcome emails, team notifications, creating related records (a job for every approved quote), pushing new leads to other tools.
Inputs
- Entity — which entity to watch.
- Only if (optional) — a condition on the new record (
Status is “new”,Total ≥ 500). The workflow is skipped when it is false.
Configuration
- Enable the workflow (toggle in the workflow list) — disabled workflows never run.
- Records created by workflows also fire this trigger (up to 3 levels), so add a condition when a workflow creates records of the same entity.
Outputs
- Current record /
{{record.field_key}}— the new record includingid,created_atandcreated_by. - Available data in every step: Current record /
{{record.field_key}}(the record that triggered the run), Event /{{event.name}}(inputs passed to the run;{{event.before.field_key}}holds the previous values after an update), Action results /{{results.key}}(values saved by earlier steps) and Current user /{{user.email}}(whoever caused the run; for test runs, you).
Example
Welcome a new customer
Example
Trigger: Customers › A record is created · Only if: Email is not empty
Step 1 Send email To: Current record › Email · Subject: Welcome to Northside Repair
Step 2 Notification Title: New customer {{record.name}}Errors
- A failed run is recorded in Run history and does not undo the record creation.
Limitations
- Runs after the record is stored; it cannot block or validate the creation.
- Creations in connected external entities fire the trigger only when they go through the app.
Advanced
- Trigger:
{ type: "record_created", entityId, condition? }. Fired bytriggerRecordWorkflows(ctx, "record_created", …)from the records API, server actions and the Database step.