Skip to content

Fill in every workflow step, type by type

Know what each of the twenty step types does and how to fill in its panel, so you can build any workflow without guessing. Each entry shows the panel set up for a real job on a matter.

21 steps·12 min read·Automation

Every one of the twenty step types, what it does and how to fill it in.

What it is

  • A workflow's steps are cards on the canvas. Click + to add one, click a card to open its panel on the right.
  • The picker groups the 20 types: Read (Query, Get record), Logic (Condition, Switch, For each, Group, Repeat until), Records (Create, Update, Delete, Record team), Run (Send email, HTTP request, Action, Sub-workflow, Script) and Flow (Delay, Compose, End, Approval).
  • Some types offer modes on a How row (Query, Get record, Record team, Delay, Compose); the panel shows only what the chosen mode needs.
  • Any box with { } takes values from earlier steps, written {{KEY.field}}.
  • Most steps can have their own If it fails path; the reading and calling steps can also retry on a schedule you set.

Good to know

  • Conditions, switches and record rules are clicked together, never typed formulas. Only a Compose step's Formula mode takes a formula.
  • A waiting step (Delay, Approval, a Sub-workflow you wait for) holds nothing while it waits, so a run can wait for days.
  • Record steps never create or change workflows, runs, scheduled jobs, approvals or connectors (an Approval step opens its own approval); a Query may read them.

Before you start

  • This is the reference for every step type, in the order the step picker shows them. Each entry shows the step's panel filled in for one realistic job and explains every setting on it.
  • The examples come from the draft Matter review, which holds one of each type on a matter. A Draft never runs, so open one of your own and try each panel freely.
  • Values from earlier steps are written {{KEY.field}}; you never type them, press { } beside a box and pick. A step sees the trigger and the steps before it, not the steps inside another step's branch.
  • New to workflows? Start with Build your first workflow.

Part 1. The step picker

1Click + and see the five groups of steps

Every + on the canvas opens the step picker. Its 20 types sit in five groups: Read (find records), Logic (decide and repeat), Records (change records and their teams), Run (mail, web calls, operations, other workflows, scripts) and Flow (wait, build a value, stop, ask for approval). Click a type and its card lands where the + was; click the card to fill in its panel on the right.

Every panel starts the same way: the type and its key, the step's name (write what it does: Find the open tasks), and buttons to Copy details, move it up or down, duplicate it or delete it.

Fill in every workflow step, type by type, step 1: Click + and see the five groups of steps (Find records; Decide, loop, group; Change records; Wait, build, stop, approve)
1Find records2Decide, loop, group3Change records4Wait, build, stop, approve

Part 2. Read: find records

Read steps change nothing. Query, Get record, Action, HTTP request, Send email, Sub-workflow and Script can retry on their own: open If it fails, retry, notes on the step.

2Query: read many records

How: Build picks a table, then rules, columns, a sort and a limit (500 rows unless you say, up to 5,000). REST statement takes the same read the list pages use, such as api/v1/data/task?$filter=…&$select=id,name&$top=50, with values from earlier steps in {{ }}. Test runs the statement now (once it has no {{ }} left in it).

Later steps go through its rows with a For each, or read {{KEY.count}}. Under If it fails, retry, notes: Retry holds exactly five waits, written short: PT1M is 1 minute, PT1H an hour, P1D a day (here 1, 2, 4, 8 and 16 minutes, 31 in all; type the first and equal, growing or narrowing fills the rest; each wait up to a day, all five up to 7 days; Turn retry off removes them), Grace Retry tries once more if Codossier Office itself was down, and Add steps for when it fails gives the step its own failure path.

Fill in every workflow step, type by type, step 2: Query: read many records (Build, or a statement; The read, with values; Five waits between tries; Its own failure path)
1Build, or a statement2The read, with values3Five waits between tries4Its own failure path

3Get record: one record

How: By id (an id from an earlier step, usually {{KEY.field}}), First match (the first record that meets rules, in the Sort you choose), By number (a record number like MAT-000123) or Its team (the people on a record's team, by tier). Here: the first Account whose Address City is Larkspur Falls.

When nothing is found: Fail stops the run with an error; Go on (found = no) carries on, and a Condition can test found next.

Fill in every workflow step, type by type, step 3: Get record: one record (How to find it; Rules on its fields; Which one comes first; Carry on if none)
1How to find it2Rules on its fields3Which one comes first4Carry on if none

Part 3. Logic: decide, loop and group

These steps hold other steps: Yes and No, the rows of a loop, the cases of a switch, a group's steps. A step inside a branch is not visible after it.

4Condition: yes or no

When: All of these or Any of these, then a rule per line: a value from an earlier step (press { } to pick it), an operator and what to compare with. Here: Find a client in the same town · found is Yes. or compare with another value… compares two values from the run. + Group nests an Any inside an All.

The operators follow the value's kind: text (is, contains, starts with, is one of, is empty), numbers (greater, less), dates (within the last or next N days, older than, is today), yes/no, choices and ids. On the canvas the condition splits into Yes and No; both paths meet again below it.

Fill in every workflow step, type by type, step 4: Condition: yes or no (All or any; The value to test; What it must be; Another rule, or a group)
1All or any2The value to test3What it must be4Another rule, or a group

5Switch: one path per value

On: the value to look at, here the matter's Status. A choice field shows its options as chips. Each case has a name and the values that lead to it (Open); + Case adds another, up to 30. Values in no case go to Otherwise. Use a switch instead of a ladder of conditions when one value picks one of several paths. A switch can also work on text or numbers.

Fill in every workflow step, type by type, step 5: Switch: one path per value (The value to look at; Its values; Another case; Everything else)
1The value to look at2Its values3Another case4Everything else

6For each: go through the rows

Go through: a Query's rows (its name is a chip) or another list… from an earlier step. Inside the loop, steps read the current row as {{KEY.item.field}} and its position as {{KEY.index}}.

  • Rows run: One after another, or At the same time: each row then runs as a run of its own, At most at once 2, 4 (the default), 8 or 16, and the loop waits for them all.
  • When a row fails: Stop the loop, or Go on with the next row.
  • An End inside the loop can skip to the next row or leave the loop.
Fill in every workflow step, type by type, step 6: For each: go through the rows (The rows to go through; One by one, or in parallel; How many at once; Skip a failed row)
1The rows to go through2One by one, or in parallel3How many at once4Skip a failed row

7Group: steps that fail together

A group holds steps that succeed or fail as one, with a single If it fails path. Add steps inside the group on the canvas. If any of them fails, the run jumps to the group's failure path. Here that path is an End, which stops the run with a reason; a failure path without an End lets the run go on after the group. Open the group's panel to add or remove its If it fails steps.

Fill in every workflow step, type by type, step 7: Group: steps that fail together (The group; Its steps; Its failure path)
1The group2Its steps3Its failure path

8Repeat until: try again until it holds

The steps inside run, then Until is asked; when its rules hold, the loop ends, otherwise the steps run again. Inside, the step's own round counts from 0, so round is at least 2 ends it after the third round. The rules can read the steps inside the loop.

At most caps the rounds (20 unless you choose, up to 200). When the rounds run out: Fail (its failure path catches it) or Go on after it. Use it to poll for something, with a Delay inside between rounds.

Fill in every workflow step, type by type, step 8: Repeat until: try again until it holds (Its rules; At most; When it runs out)
1Its rules2At most3When it runs out

Part 4. Records: create, change, delete, share

Every write runs as the workflow's Run As and keeps that person's access. Each of these steps can have its own If it fails path.

9Create record: a new record

Pick the Table, then + Add a field for each value. A value mixes fixed text and values from earlier steps (press { }). To put the record on a record's timeline, fill Regarding Entity Name (the table, here matter) and Regarding Record ID.

If it already exists: Always create, Update the match or Skip. The last two ask which fields make a match, so running twice does not make two records. Later steps read the new record's id as {{KEY.id}}.

Fill in every workflow step, type by type, step 9: Create record: a new record (The table; Text plus values; One row per field; Or update a match)
1The table2Text plus values3One row per field4Or update a match

10Update record: change fields

Which record: The trigger's record (the record the run started on, no id needed) or Another record: then pick its Table and give the Record id. Here, inside the For each, it is the current task, {{…item.id}}.

Each field you add is Set to a value or Cleared; a number field can also be added to or subtracted from. Only the fields you list change.

Fill in every workflow step, type by type, step 10: Update record: change fields (Which record; Its id; Set or clear; Another field)
1Which record2Its id3Set or clear4Another field

11Delete record: remove one

The same Which record choice: the trigger's record, or another by table and id. Here, in the approval's Rejected path, it removes the note the workflow made earlier. The delete runs as the workflow's Run As and is refused where Run As may not delete. Put a delete behind a condition or an approval, so it only happens when you mean it.

Fill in every workflow step, type by type, step 11: Delete record: remove one (Which record; Its id; Run As must be allowed)
1Which record2Its id3Run As must be allowed

12Record team: add, change or remove people

How: Add people at a tier (someone already on the team at a higher tier keeps it), Change tier, or Remove. Which record: the trigger's record or another. People: pick a person, or press { } for a value such as the record's Created By. Tier: Owner, Contributor or Reader. + Until a date makes an added place end by itself.

Run As must be an Owner of the record or an administrator, as when done by hand. To hand a record to someone, use Change tier to Owner.

Fill in every workflow step, type by type, step 12: Record team: add, change or remove people (Add, change, remove; Who; At which tier; For a while)
1Add, change, remove2Who3At which tier4For a while

Part 5. Run: mail, web calls, operations, workflows, scripts

These steps reach outside the run: they send mail, call other servers and start other work. Give the ones that matter a failure path, and test a web call before you rely on it.

13Send email: mail from a mailbox

From: The Run As's mailbox (its default one) or A shared mailbox. To: A record's team (here the owners of the matter), A value from an earlier step, or a typed address; + Cc adds copies. Subject and Body take values with { }. About: the record whose timeline keeps the email.

This step sends real mail when the run reaches it. The sender needs a mailbox: a Run As without a default mailbox fails the step, so choose a shared mailbox for unattended runs. The office caps how many emails one run may send (60 unless an administrator changes it in Office Settings); past it, the step fails and no more are sent.

Fill in every workflow step, type by type, step 13: Send email: mail from a mailbox (Who it is from; Who gets it; Subject with values; Its timeline)
1Who it is from2Who gets it3Subject with values4Its timeline

14HTTP request: call another server

Connection: pick a connector from the chips (the shot keeps only the one chosen), the record that holds the server's address and how Codossier Office signs in to it (administrators make them with + New connection; see Connectors). The step never holds a secret. Request: the method and the path; + Query parameters, + Headers and, for a POST, PUT or PATCH, a body. The answer is: JSON (later steps read its fields) or Text.

What Codossier Office sends shows the full call. Test sends it once, now. An answer outside 2xx fails the step; 5xx, 429 and timeouts are retried. + Wait for the other server to call back sends a one-time return address and waits (for e-signature, payment or a long job elsewhere).

The whole road, end to end (pick the connector, test the call, publish, run, read the HTTP step's output in the run, and use {{KEY.body.field}} in the next step): Connect an outside service, part 3.

Fill in every workflow step, type by type, step 14: HTTP request: call another server (The connector; Method and path; Wait for a reply; Send it once, now)
1The connector2Method and path3Wait for a reply4Send it once, now

15Action: run an operation

Runs: any operation you may call: Codossier Office's own (here TimelineGet, which reads a record's timeline) or your office's custom actions. Give the Table and Record it works on, and its Inputs by name. It answers shows what later steps read, here {{KEY.result}}.

To hand work to an agent, the operation is AgentDispatch on the record the work is about. An action runs as the workflow's Run As.

Fill in every workflow step, type by type, step 15: Action: run an operation (The operation; On which table; Its inputs; What it answers)
1The operation2On which table3Its inputs4What it answers

16Sub-workflow: run another workflow

Workflow: pick one of the published workflows listed as chips (the shot keeps only the one chosen). On a record: the record it runs on, when it has a table. + Inputs: the values it declares (see Workflow triggers, As a sub-workflow). Then: Wait for it to finish (what its End returns comes back here) or Start it and go on. + Give up after a while sets a time limit. Build a step that several workflows share once, as a sub-workflow.

Fill in every workflow step, type by type, step 16: Sub-workflow: run another workflow (Which workflow; On which record; Wait, or go on; A time limit)
1Which workflow2On which record3Wait, or go on4A time limit

17Script: a few lines of JavaScript

For what no other step does. crift.input.KEY holds an earlier step's value; what you set on crift.output.name, later steps read as {{KEY.name}}. Here it keeps the number of open tasks the Query found. A script can also query, create, update and run operations, each write on its own.

It runs as the workflow's Run As, in the same sandbox and limits as plugin scripts (60 seconds, 100,000 statements). An error fails the step, which its failure path can catch.

Fill in every workflow step, type by type, step 17: Script: a few lines of JavaScript (The script; What it can read and set)
1The script2What it can read and set

Part 6. Flow: wait, build a value, stop, ask for approval

18Delay: wait

How: For a time (30 minutes, 4 hours, 2 days), Until a time (a date, or a date from an earlier step), Business hours (counted in the office's working week and time zone, days off skipped), or Until a condition: Codossier Office checks a record every so often (15 minutes unless you say, at least 5) until it meets your rules, and runs If it times out steps if the time limit passes first.

A waiting run shows as Waiting and holds nothing while it waits, so long waits cost nothing.

Fill in every workflow step, type by type, step 18: Delay: wait (How it waits; How many hours; Or until a record changes)
1How it waits2How many hours3Or until a record changes

19Compose: build a value once

How: Text (words with values in {{ }}), JSON (an object or a list, here the matter's name and how many open tasks it has), or Formula (a PowerFx formula for dates, numbers and text). Later steps reuse the value, so a message or a payload is written once.

Fill in every workflow step, type by type, step 19: Compose: build a value once (Text, JSON or formula; The value)
1Text, JSON or formula2The value

20End: stop, with an outcome

Outcome: Succeeded closes the run as Completed; Aborted closes it as Rejected, with the reason you write (here, in the group's failure path: Could not tidy the matter.). + Return values hands values back to a parent workflow. Inside a For each, an End can also skip to the next row or leave the loop. An End is always the last step of its path.

Fill in every workflow step, type by type, step 20: End: stop, with an outcome (Succeeded or aborted; The reason; Values for a parent)
1Succeeded or aborted2The reason3Values for a parent

21Approval: ask people, then branch

Which record the question is about, and Who approves: a record's team (here the matter's owners), a value, or an address of a person in the office (up to 25; the person who started the run is never asked). Each gets an email with an Approve and a Reject link: no sign-in, each link works once. They can also decide signed in to Codossier Office.

  • Settled by: Any one (the first answer decides), Everyone (one rejection rejects), or Threshold (approved once the share of approvals goes over it, 0.50 unless you set it).
  • Message, and whether a rejection needs a comment.
  • Deadline: None, or After a time (4 hours, 1 day, 2 days, 7 days); Add steps for when it times out.

The links start with the office's public address, so an administrator must fill the business setting Workflows: Codossier Office's public address (webhooks, approval links) in Builder → Business Settings first. The run waits, then runs the Approved or Rejected steps on the canvas. More in Approvals.

Fill in every workflow step, type by type, step 21: Approval: ask people, then branch (Who decides; How it is settled; Comment on reject; A deadline)
1Who decides2How it is settled3Comment on reject4A deadline

What next

  • Choose how the workflow starts: Workflow triggers.
  • Publish it, run it and read each run's steps: Build your first workflow, part 3.
  • Limits worth knowing: 200 steps, 8 levels of nesting, 50 rules in a condition, 30 cases in a switch.