Run steps only when conditions hold, branch with If, loop over related records or dates, run branches side by side, retry, wait, stop with a message, and decide what happens when a step fails.
Conditions decide whether a workflow or a step runs. The Control Flow steps in the palette decide how: branch, loop, wait, retry or stop.
Where to find it
On the canvas (Sidebar → Admin → Workflows → Open in visual canvas): Conditions in the top bar for the whole workflow, and the Control Flow group in the palette for the steps on this page.
Workflow conditions
Click Conditions in the top bar (or Trigger Conditions on the trigger node). The workflow only runs when these conditions match; leave them empty to always run.
Each condition is a field, an operator and a value, for example AmountGreater Than50000. A group matches all its conditions (AND) or any of them (OR): click the badge after Match to switch. Click + Condition to add a condition and + Group to nest a group, for example to match A and (B or C). You can also compare two fields of the record (Value | Field), for example "Renewal date is before End date".
Useful operators: Equals, Is Empty, Greater Than, Contains, In, Is Today, Is in the Past, Within Last N Days, More Than N Days Ago, Has Any Of (multi-select) and, on After Update, Before Save and When Assigned workflows, Changed, Changed To and Changed From.
Rules to know:
Workflow conditions read the record's own fields only. A condition on a related record's field (for example the account's type) is always false. Use an If / Condition step for that.
Use the stored value of a choice field, not its label.
On a change made through the API, an import or AI, changed is false for fields that were not sent.
Control Flow steps
Step
What it does
Main settings
If / Condition
Checks conditions and runs the Yes branch or the No branch. Unlike workflow conditions, it can read related records and earlier steps' results.
Conditions. With none, every record takes the Yes branch.
For Each
Runs its steps once for each related record, or once for each date and time in a schedule (for example every weekday for the next 14 days, at 09:00).
Relation (iterate over related records) or a schedule, Run mode, If there are more than 1,000.
Parallel
Runs several branches side by side.
Number of Branches, Continue if a branch fails.
Retry
Runs its steps again when one fails, waiting longer each time.
Max Attempts (1 to 10, default 3), Backoff (ms) (default 2,000), Backoff Multiplier (canvas).
Delay / Wait
Pauses the run.
Delay Mode: Relative Delay (Duration, Unit: seconds to days) or Until Date Field (Date Source, When to fire before, on or after the date, At time of day).
Validate Field
Checks one field and stops the workflow if the check fails. Best with Before Save.
Field, Operator, Expected Value, Error Message. Operators include must have a value, comparisons, pattern match, dates, and Only changes from, Only changes from one of and Cannot change away from (limit which previous values a field may change from).
Stop with a message
Stops the run with your message. In a Before Save workflow the save is refused with it; in a button (record action) the action fails with it. Put it inside an If to stop only sometimes.
Message people see.
Trigger Workflow
Runs another workflow of the same module on this record, if its conditions match.
Delay / Wait, Request Approval and steps that wait for an app cannot be inside a For Each or Parallel step, and buttons (record actions) cannot wait at all. Put them outside any For Each or Parallel step (inside an If is fine). A delay until a date waits at most 365 days; a later date is shortened to 365 days.
Loops over many records
An Inline loop handles up to 1,000 related records during the run, oldest first. Choose what happens with more: Process the first 1,000 and mark the step partial or Process none and stop the workflow. For longer lists, choose the Background job run mode: the loop runs in background batches, up to 50,000 records. The next steps of the workflow run right away and do not wait for the loop, and a failed batch is not retried automatically. Turning off or deleting the workflow also stops the loop. Background loops are not available in Before Save or After Delete workflows, or inside another loop. If a loop is set to Background job where that is not allowed, the step says why and the workflow cannot be saved until you switch it to Inline.
A running background loop appears on the Background Jobs page, with its progress and the records that failed. Stop loop asks Stop this background loop?: the running batch stops before its next record and no more batches run. Records already processed keep their changes, and e-mails or webhooks already sent are not undone. The loop cannot be resumed; run the workflow again to start over.
When a step fails
The workflow's On Action Error setting decides by default: Continue to next action (skip the failed step) or Stop workflow (the run fails). Each step can override it under If this step fails:
Option
What happens
Workflow default
Follow the workflow's setting. On a step that waits for a signature, this option reads Halt the run (default for a step that waits for a signature): the run stops, because later steps expect a signed document.
Continue with the next step
Mark this step failed and go on.
Stop the run (failed)
Stop here; the run is marked failed.
Good to know
Retry runs all its steps again, including ones that worked. An e-mail inside a Retry can be sent more than once. Keep sending steps outside the Retry, or make them safe to repeat.
Workflows that start each other stop after 10 levels. See When workflows run.
Placeholders such as {{record.amount}} work in messages and in If / Condition steps. In workflow conditions, {{today}}, {{now}} and {{settings.<key>}} work as values, but {{record.…}} and {{signal.…}} are compared as plain text (except as the value of Before (fixed date) and After (fixed date)). To compare two fields there, use Value | Field.