Choose how a workflow starts, trigger by trigger
Run a workflow when someone asks, on a clock, after a record is saved, or when another system calls it. This guide sets up each kind of start on the trigger card, with the settings each one needs.
On demand, on a clock, on a save, from another system: pick how a workflow starts.
What it is
- The trigger card is the first card on a workflow's canvas. Its Starts row has seven choices: On demand, On a schedule, Record created, Record updated, Record deleted, Webhook (HTTP) and As a sub-workflow.
- Each choice shows only what it needs: a table, inputs, a schedule, the fields and rules that count, or a webhook address and its proof.
- Run As decides whose access every step has. A record trigger or a webhook must name a person: every run then works with that person's access, whoever saved the record or sent the call.
- A trigger only fires on a Published workflow. You can try every option on a Draft without starting anything.
Good to know
- A record trigger runs after the save, in the background. A rule that must refuse or change the save itself belongs in a validation rule or a plugin script.
- A workflow's own saves never start it again, and workflows that start workflows stop at 8 levels deep.
- Codossier Office's own bookkeeping tables (workflows, runs, scheduled jobs, the audit) never start a workflow.
- A webhook secret is never stored; the panel shows it masked until you ask to see it. Give it a new one at once if it leaks.
Before you start
- You need a workflow to start: create one first with Build your first workflow. Everything here happens on its trigger card, the first card on the canvas.
- We use the draft My first workflow and try each way it can start. Changing the trigger of a Draft starts nothing: only a Published workflow runs, so you can explore every option safely.
- A workflow that starts by itself (on a schedule, on a save, from a webhook) never needs a person to press anything, so read its Run As section twice: its steps have exactly that person's access.
Part 1. Open the trigger card
1Click the trigger card, then read the Starts row
Open Builder → Workflows and your workflow. Click the first card on the canvas, the trigger card: its panel opens on the right. The Starts row is the choice this guide is about. Each chip shows the settings that kind of start needs, and the (i) beside a label explains it. The name at the top of the panel is the card's name on the canvas.

Part 2. On demand: a person, a button or a script starts it
The default, and the safest place to begin: nothing happens until someone starts it.
2On demand: pick its table, declare its inputs, choose Run As
Leave Starts on On demand. Then:
- On the table: the record it runs on. Pick Matter and it is started from a matter, which every step reads as the trigger's value. Leave it on No record for a workflow that works from its inputs alone.
- Inputs (what it takes): press + Input for each value the person must give. Type its name (lower case, like reason), choose its kind (Text, Number, Yes / no, Date, Record id or JSON), tick required if a run cannot go without it, and give it a label people will read. Steps use it as
{{KEY.reason}}, shown under the input. Every start is checked first: a missing required input cancels the run with the reason, before any step runs. - Run As: Initiating User runs each step with the access of whoever starts it. Pick a person in the box below to run it as a fixed account, for example so that people may run it on records they cannot change themselves.

Part 3. On a schedule: a clock starts it
A scheduled workflow runs on no record. It reads what it needs with a Query step (see the step reference).
3On a schedule: set the clock here, or from Scheduled Jobs
Click On a schedule. The Schedule row offers two ways; while there is no pattern yet, From Scheduled Jobs is the one chosen:
- Set it here: the pattern lives on the trigger card, and the workflow looks after its own scheduled job. Pick this one unless a job already runs the workflow.
- From Scheduled Jobs: the workflow has no clock of its own; a job you make in Builder → Scheduled Jobs runs it by name. Use it when the job already exists, or you want to manage the clock with the other jobs.
Press the (i) beside Schedule to read what publishing does.

4Set it here: every Monday at 07:00, or any pattern
With Set it here, the pattern panel opens with a starting point: every week, on Monday, at 07:00. Change it to what you need:
- Repeat every: a number and a unit (minutes, hours, days, weeks, months, years). Every 2 weeks is 2 weeks.
- On: the weekdays it runs (click several: Mon and Thu). Months offer days of the month, the last day, or "the last Friday".
- At (one or more hours) and the minute after the colon: click several hours to run more than once a day.
- Advanced: the same pattern as a written rule, for a pattern the panel cannot show.
Times are in the office's time zone (Office Settings). The office also sets the shortest repeat a job may have; a pattern under it is refused when you publish.

5Publish: the workflow makes its own scheduled job
A schedule does nothing on a Draft. Publish stays grey while the badge shows something to fix (this draft has no step yet). When you press it, Codossier Office creates the scheduled job that runs this workflow (or brings it in step with the pattern, the Run As and the name) and makes it active. Builder → Scheduled Jobs then lists it as from this workflow. To draft, Retire or another trigger pauses it, and deleting the workflow deletes it.
- Change the schedule here, on the workflow, never on its job: the next publish would put the job back.
- With Run As left on Initiating User, a scheduled run uses the access of the person who published it. Pick a person to make it independent of who publishes.

Part 4. On a save: a record created, updated or deleted
A record trigger runs after the save is done, in the background, once per save. To refuse a save or change it while it happens, use a validation rule or a plugin script instead.
6Record created: pick the table it watches, and a person to run as
Click Record created, then choose the table in Watches the table (here Matter). After every new matter is saved, the workflow starts one run on it, in the background.
- Only when the record…: add rules on the table's fields so only some records start it (for example, only matters in one city). No rule: every new record.
- Run As is required here: the panel offers no Initiating User, and says in red that it cannot be published until you pick a person. Choose someone whose access covers what the steps do and who can read the saved record; whoever saved the record, the steps work as that person.
- A workflow's own saves never start it again, so it cannot loop on itself.

7Record updated: the fields that count, and a condition
Click Record updated and pick the table. Two settings decide which saves start it:
- When these fields change: Add a field for each field whose change matters (here Status). Only a real change counts: saving the same value again, or Codossier Office's own modified stamps, never starts it. With no field chosen, any field's change does.
- Only when the record…: press + Rule, choose a field, an operator and a value. The rules are judged on the record after the save. Here: Status is Closed, so the workflow runs when a matter is closed, and not when it is reopened.
Choose All of these or Any of these to combine several rules, and Group to mix the two.

8Record deleted: the record as it was
Click Record deleted and pick the table. The run starts after the delete, so the record is gone: the trigger card holds a copy of it as it was (its fields, its id and its table), and steps read that copy. A step cannot read the deleted record again. Only when the record… is judged on the record as it was before the delete. Use it to tidy what pointed at the record, or to tell someone.

Part 5. Webhook: another server starts it
A website form, a payment service, Power Automate or Zapier sends a JSON body to the workflow's own address, and the run starts with that body as its values.
9Webhook: save it, then copy its address and choose the proof
Click Webhook (HTTP) and press Save: the Webhook section then fills in, laid out as the caller needs it.
- 1 Where to send it: the workflow's own address, with a copy button. It starts with the office's public address (the business setting Workflows: Codossier Office's public address (webhooks, approval links) in Builder → Business Settings). The caller sends a POST, PUT or PATCH; never a GET, so a link opened by a mail scanner cannot start work.
- 2 How the caller proves itself: Signed (recommended): the caller signs each call with the secret, the secret never travels, and a call more than 5 minutes old is refused. Secret key in a header: the caller sends the secret itself, for tools that cannot sign (Power Automate, Zapier, a scheduled script). Changing it asks you first.
- The secret shows masked. The eye shows it, the copy button copies it, and the round arrow gives a new one at once (every caller then needs the new one). Keep it in the caller's own settings, like a password.

10Webhook: the headers and the body, then a ready call
3 What to send lists each header with what it holds: Content-Type, the timestamp and signature for a signed call, and an optional Idempotency-Key (send the same key again and you get the first run back, not a second one). Type an example of the JSON body the caller sends: each top-level field becomes a value the steps read, shown underneath as {{KEY.order}} and so on.
4 Try it writes the whole call for you in curl, PowerShell or Node, with <secret> where the secret goes. Send a test call works once the workflow is Published, and it starts a real run.
Like a record trigger, a webhook needs a Run As person: the call comes from a server, not a person.

Part 6. As a sub-workflow: another workflow starts it
11As a sub-workflow: declare what the parent must give
Click As a sub-workflow to make a building block that other workflows call with a Sub-workflow step. Declare its Inputs as for on demand: here a required Record id named matter, limited to the Matter table, so the run starts only if the id is a matter that Run As can read. The parent's step is checked against these inputs when the parent is published and as you edit it, so a wrong call is caught before it runs.
Pick On the table instead if the sub-workflow always runs on one record: the parent then names the record. A sub-workflow's End step can hand values back to the parent.

12In the parent: a Sub-workflow step calls it
In the parent workflow, add a Sub-workflow step (in the picker's Run group). Pick the workflow in Workflow (only published ones are listed; the shot keeps only the one chosen), name the record in On a record or fill + Inputs, and choose Then: Wait for it to finish (its End values come back to the parent) or Start it and go on. + Give up after a while sets a time limit. More in the step reference.
When you are done exploring a draft, put Starts back to On demand, or simply leave without saving.

What next
- Pick a trigger, then Save and Publish: a trigger only fires on a Published workflow, and To draft stops it again.
- A trigger that names a table makes the record its value: steps read it as
{{trigger}}values, for example the matter's name. - Every step type and its settings: The workflow step reference. A clock that runs a single operation needs no workflow: see Scheduled jobs.