Skip to content

Build your first workflow, step by step

Turn a routine into a workflow that reads records, decides, creates and updates, and keeps a record of every run. In this guide you build a real one on a matter, publish it, run it and check what it did.

14 steps·5 min read·Automation

Several steps, a decision, a wait and an approval, designed on one screen.

What a workflow is

  • A trigger card (how it starts) followed by steps that run from top to bottom, drawn on a canvas.
  • It starts on demand (a person, a button, a script), on a schedule, when a record is created, updated or deleted, from a webhook, or as a sub-workflow.
  • Twenty step types cover reading, deciding, looping, changing records, calling services, waiting and asking for approval.
  • Each run keeps its own copy of the design with every step's input and output, so you can always see what happened.

Good to know

  • A rule that must hold inside a save (refuse it, fill a field) is a plugin script, not a workflow: a record trigger runs just after the save.
  • Conditions are rules you click together, never formulas.
  • A workflow runs as its Run As: that person's access applies, and every use is logged.

Before you start

  • You need the Workflows area of the Builder: Global Administrators have it; other roles need the workflow operations in Builder → Roles.
  • We build Lease file kickoff: run on a lease matter, it reads the client company, creates the first task and writes a note on the matter. It is on demand, so it never starts by itself.
  • Nothing here sends email or costs money. A run costs only what its steps cost.

Part 1. Create the workflow and choose how it starts

1Open Builder → Workflows and press New workflow

The list shows every workflow with its number, its status (Draft, Published or Retired) and how it starts. Type in the search box to find one by name or number.

New workflow creates a Draft at once and opens it, so give it its real name on the next screen.

Build your first workflow, step 1: Open Builder → Workflows and press New workflow (Creates a draft and opens it; Find one by name or number)
1Creates a draft and opens it2Find one by name or number

2The empty canvas: a trigger card and a +

A new workflow holds only its trigger card (how it starts) and a + below it. The orange badge counts what still stops it from being published; here, it has no step yet. The name at the top is the workflow's name: click it to rename.

Build your first workflow, step 2: The empty canvas: a trigger card and a + (Its name; The trigger card: click it to choose how it starts; Add the first step; What still blocks publishing)
1Its name2The trigger card: click it to choose how it starts3Add the first step4What still blocks publishing

3Choose how it starts: on demand, on the Matter table

Click the trigger card. In its panel:

  • Starts: On demand means a person (or a button, a script, another workflow) starts it. The other choices start it by themselves: on a schedule, when a record is created, updated or deleted, from a webhook, or as a sub-workflow.
  • On the table: the record it runs on. With Matter, every step can read the matter as {{trigger}}.
  • Inputs: optional values the person fills in when they start it.
  • Run As: whose access the steps use. Initiating User means the person who starts it; pick A person to run with a fixed account.
Build your first workflow, step 3: Choose how it starts: on demand, on the Matter table (How it starts; The record it runs on; Optional inputs; Whose access it uses)
1How it starts2The record it runs on3Optional inputs4Whose access it uses

Part 2. Add the steps

Every step is a card on the canvas. Click a + to add one, click a card to open its settings on the right. Steps run from top to bottom; a condition splits the flow into Yes and No, and the flow joins again below it.

4Click + and pick the kind of step

The picker groups the 20 step 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). For the first step, pick Get record.

Build your first workflow, step 4: Click + and pick the kind of step (Read one record; Decide yes or no; Make a record)
1Read one record2Decide yes or no3Make a record

5Get record: read the client company

Name the step (Get the client company), then:

  • How: By id reads one record by its id. First match finds it by rules, By number by its record number, Its team lists the people on a record's team.
  • Table: Account.
  • Record: the id to read. Press { } to insert a value from an earlier step; here the matter's Account field.
  • When nothing is found: Go on lets the workflow continue when the matter has no client.
Build your first workflow, step 5: Get record: read the client company (How to find it; The table; { } inserts a value; Carry on if none)
1How to find it2The table3{ } inserts a value4Carry on if none

6Condition: only lease matters go on

A condition asks one question and splits the flow into Yes and No. Choose All of these or Any of these, then add rules: a value, an operator and what to compare with. Here: the matter's Name contains Lease. Add a Group to mix All and Any. Rules are never formulas, so anyone can read them.

Build your first workflow, step 6: Condition: only lease matters go on (All or any; The value to test; Add a rule, or a group)
1All or any2The value to test3Add a rule, or a group

7Yes and No branches on the canvas

Under the condition, the canvas shows two paths. Click the + under Yes to add what happens for a lease matter. Under No, an End step stops the run cleanly with a reason. Both paths meet again below, where the next shared step goes.

Build your first workflow, step 7: Yes and No branches on the canvas (Steps for a lease matter; Otherwise: stop here)
1Steps for a lease matter2Otherwise: stop here

8Create record: the first task, about the matter

Pick the Table (Task), then + Add a field for each value. Mix fixed text with values from earlier steps: Collect the signed lease from {{client name}}. To put the task on the matter's timeline, set Regarding Entity Name to matter and Regarding Record ID to the matter's id. If it already exists can update a matching record instead of making a second one.

Build your first workflow, step 8: Create record: the first task, about the matter (The table; Text plus a value from step 1; One row per field; Or update a match)
1The table2Text plus a value from step 13One row per field4Or update a match

9Compose: write the note once

A Compose step builds a value that later steps reuse: Text (with values from earlier steps), JSON, or a Formula. Here it writes the note the next step puts on the matter.

Build your first workflow, step 9: Compose: write the note once (Text, JSON or formula)
1Text, JSON or formula

10Update record: write the note on the matter, then End

Update record changes fields on a record. The trigger's record means the matter the run started on, so no id is needed. Set Description to the note from the Compose step. A field can also be cleared, or a number added to. Finish with an End step: Succeed, or Abort with a reason.

Build your first workflow, step 10: Update record: write the note on the matter, then End (The run's own record; The field to change)
1The run's own record2The field to change

Part 3. Publish, run it, and check what it did

11Check it, save it, publish it

The badge turns green, Ready, when the server finds nothing to fix. Save keeps your changes as a Draft; Publish checks the design once more and seals it. Only a Published workflow runs. To change a published one, press To draft, edit, and publish again.

Build your first workflow, step 11: Check it, save it, publish it (Nothing to fix; Back to editing; Only published runs)
1Nothing to fix2Back to editing3Only published runs

12Run it now on a matter

Pick a record in the box beside Run now (any matter you can see) and press Run now. The run starts at once, as the workflow's Run As. People usually start it from a button on the matter instead: see Dialogues and ribbon buttons.

Build your first workflow, step 12: Run it now on a matter (Pick the matter; Start a run)
1Pick the matter2Start a run

13See the run: a tick on every step that ran

Open the Runs tab and click a run. The canvas shows the run's own copy of the design: a green tick on each step that ran, a spinner on one running now, an hourglass on a wait, a red cross on a failure. The No branch has no tick: it did not run. Click a card to see what it took in and gave out.

Build your first workflow, step 13: See the run: a tick on every step that ran (Every run; Click a run; Ticked: it ran)
1Every run2Click a run3Ticked: it ran

14Check the matter

Open the matter. Its description now carries the note, and the new task is on its Activities tab, Regarding the matter, like any task a person adds.

Build your first workflow, step 14: Check the matter (The new task is here)
1The new task is here

What next