Build a custom action, step by step
Give your office's own routine a name, a checked input and one way in, so a button, a workflow or another tool calls it the same way every time. In this guide you build one on a matter, publish it, run it from a button and call it from a workflow.
Your office's own named operations, callable from anywhere.
What it is
- A named operation of your office: "when we say Open Intake Tasks, do this". It has an input (what a caller sends), an answer (what it gives back) and logic.
- The input and the answer are fields with Codossier Office's own types: text, numbers, money, yes or no, dates, choices, links to records and free-form JSON. The platform checks the input before anything runs and the answer before the caller gets it.
- The logic is one of three kinds: a Workflow it starts, a Chain of up to 12 of Codossier Office's operations that succeed or fail together, or a Script (plugin scripts on the action's own operation).
- It is called by its operation name from a ribbon button, a dialogue's Confirm, a workflow's Action step, another action's chain, or the API.
- It lives in Builder → Custom Actions: a designer with three cards, When called, Do and Answer, and Kuztom beside it.
Good to know
- The operation name is fixed when the action is created. New action names it NewAction today; the name people read can be changed, the operation name cannot.
- Two steps, as in every designer: Save keeps a draft, Publish makes the saved draft callable. A draft, or a switched-off action, answers callers with "not found".
- An action runs as the person who calls it; the designer has no Run As (an administrator can give an action its own, as a separate step). A workflow it starts runs as that workflow's Run As, and a button can run it as another user.
- Anything Codossier Office already does (send mail, convert a lead, set a deadline) is a built-in operation. A custom action is for your office's own combination of steps, under your names and your contract.
Before you start
- You need Builder → Custom Actions: administrators design and publish actions.
- We build Open Intake Tasks: called on a matter, it opens the two tasks every new matter starts with, the conflict check and the engagement letter, due on the date the caller gives. A workflow does the work; the action gives it a name, a checked input and one way in for a button, a workflow or the API.
- Then we call it twice: from a button on the matter, and from an Action step in another workflow. Both only create tasks, so nothing here sends mail or costs money.
Part 1. Open the list and the designer
1Open Builder → Custom Actions
Each action your office built is a card with its name, its operation name and number, its status (Draft or Published), its logic type, how many fields go in and come out, and its table. Below, Made by code lists the actions that arrive with Codossier Office itself: they are read only here.
New action creates a Draft at once and opens the designer. Today the draft is named New action, and its operation name, the name every caller uses, is NewAction (NewAction_2 and so on when that is taken). You can rename what people read in the designer, but not the operation name: buttons, workflows and the API keep calling it NewAction. When the operation name matters, describe the action to Kuztom in the Consultant (an AI call that costs a little), which builds it under the name you agree and publishes it at once. Ours was created under its own name, OpenIntakeTasks, before we opened it here.

2The designer: its names, its status and three cards
At the top, the name people read (click it to change it) and under it the operation name, the action's number and, once it is published, its version. The operation name is what a button, a workflow or the API calls: POST /api/v1/execute/OpenIntakeTasks, with the matter added after it when the action runs on a record. Beside them, the status: Draft until you publish (a draft is never callable), then Published, as ours already is here.
On the left, three cards: When called, Do and Answer. Under them, Tied to counts what calls the action and what it runs (ours already counts the button and the workflow you add in Part 5).

Part 2. Say what a caller sends
The designer reads top to bottom on the left: When called (the record it runs on and the input), Do (the logic) and Answer (the output). Click a card to open its settings on the right.
3When called: on a Matter record
With When called selected, fill in the right side:
- Description: one sentence on what it is for. Callers and Kuztom read it.
- Called with: No record for an action that stands alone, or A record when it acts on one record, like a button on a form. Pick A record.
- Table: the table of that record, Matter. The logic then knows the matter as
{record}, and a workflow it starts runs on that matter. An action of type Script must have a table.

4Input: add a field and choose its type
Under Input, press + Field. Each field has a Name (lowercase letters, digits and underscores: what a caller sends), a Type, a Label people read and a Required switch. The types are Codossier Office's own:
- Text and Long text; Whole number, Decimal and Money; Yes / no;
- Date and Date and time (sent as ISO text, like 2026-12-03);
- Choice: you list its labels, and the value is one of them;
- Link to a record: you pick the table, and the value is that record's id;
- Free-form JSON: anything, checked by nothing. Use it only for extras the contract cannot name.
Name the first field due_by and pick Date.

5Two input fields, neither required
Give due_by the label Due by. Press + Field again for note, type Long text, label Note for the team. The platform checks every call against these fields before anything runs: text where a date belongs is refused, with the field named.
Switch Required on for a field every caller must send. We leave both off on purpose: a ribbon button sends only fixed values or values from the open record, and a matter has no due date to send, so the button calls it without one. The small arrows and the bin beside each row move or remove a field.

Part 3. Choose the logic and wire it
6Do: choose what does the work
Click the Do card. What does the work has three choices:
- Script: plugin scripts written on this action's own operation and table do the work, read the input and set the output. Pick it when the logic needs code (see Plugin scripts). It needs a table, and at least one switched-on script before it publishes.
- Workflow: starts a published workflow and answers at once with the run. Pick it when the work creates or changes records, waits, loops or asks for an approval. Ours is a workflow.
- Chain: Codossier Office's own operations (and your other published actions), one after another, up to 12, each as the caller; if one fails, the earlier ones are undone. Each step is picked from the designer's list of operations, and the plain create of a record is not offered there: to create an ordinary record such as a task, use a workflow.

7Pick the workflow and give it the input
Under Workflow, Starts lists your published workflows: pick Matter Intake Tasks (next step). Under Gives it, press + Add once for each value the workflow takes, and say where it comes from: due_by = {input.due_by}, note = {input.note}. A value can be {input.name}, a field of the input, or {record}, the matter's id; the matter itself goes to the workflow as its record without being named. A value that is exactly one reference keeps its type (a date stays a date); text around a reference makes it text.
The workflow runs as its own Run As, after the call is saved, and the action answers at once.

8The workflow it starts: Matter Intake Tasks
This is an ordinary on-demand workflow on the Matter table (build one with Build your first workflow). Its trigger card declares two Inputs, due_by (a date) and note (text), the names the action fills. Two Create record steps add a task each, Conflict check: {matter name} and Engagement letter: {matter name}, Regarding the matter and due on due_by. Its Run As is Initiating User, so the tasks are created as whoever called the action. Publish it before you pick it: Starts offers only published workflows.

9Answer: what the caller gets back
Click the Answer card. A workflow action always answers the same two fields, run_id and status: the run it started, and where it stood. Read the run for how it ended.
With a chain or a script, this card holds an Output list, filled as the input is (name, type, label), and the platform checks the answer against it before the caller gets it. For a chain, Where each comes from says which step's answer fills each field, as {stepid.field}.

Part 4. Check, save and publish
10Check it, Save the draft, then Publish
The buttons sit at the top right of the designer. The badge asks the server as you type. When it turns green, Ready, nothing is left to fix: the fields, the table, the logic (here, a published workflow that exists) and its wiring. Then:
- Save keeps your work as the draft, in any state. A draft is never callable.
- Publish makes the saved draft the live action, callable at once by its operation name. It waits until you have saved, and refuses a design with problems.
On a new action the status beside the name reads Draft until you publish. Ours is already published, so Try shows here too (next step).
Kuztom beside the designer can draft the whole design from a sentence and saves it as the draft for you to review; each request is an AI call and costs a little.

11Published: Try it, switch it off, and who it runs as
Once published, the status reads Published and the operation name gains a version (v1, v2 and so on, counting the publishes; no older versions are kept). To change it, edit, Save and Publish again.
- Try opens a panel: give the id of a matter and the input as JSON, press Run, and it calls the action as you, for real.
- The switch-off button retires it: callers get "not found" and the design stays, ready to publish again. It lists the callers that would fail first.
- Run As: the designer has none. An action runs as the person who calls it, unless an administrator gives it a Run As of its own, a separate step outside the designer. A workflow it starts runs as that workflow's Run As, and a ribbon button can run it as another user (Runs as on the button).

Part 5. Call it from a button and from a workflow
12Add a button to the Matter ribbon
Open Builder → Ribbons, the Matter ribbon, and press + Button. Give it the Label Open Intake Tasks and an Icon. Under When clicked choose Run a custom action, then pick the action by its operation name under Custom action (publish it first: a draft is not offered). Under Parameters, press + Add parameter for each input you want to send: ours sends note = Opened from the matter ribbon. and no due_by. Insert… puts in a value from the open matter instead (one of its fields, its id). A button cannot ask the person for a value: for that, open a dialogue first (Dialogues and ribbon buttons) or use the workflow at the end of this guide.
- Show when: a rule that hides the button unless the matter meets it.
- Runs as: The person who clicks, or a chosen user.
- Ask first: your own question before it runs; When done: the sentence shown when it worked.
Then Save the ribbon. When the ribbon is full, the last buttons fold under the three dots, here as on the form: click them to reach yours.

13Click it on a matter
Open a matter. The button sits in the ribbon with the others; when the ribbon is full, the last buttons move under More commands (the three dots on the right), as ours does here. Click Open Intake Tasks.

14Confirm, and it runs
Codossier Office asks before a button runs anything on the server: Run Open Intake Tasks on this record? Press the blue button to run it, or Cancel (set your own question in Ask first). The action checks its input, starts Matter Intake Tasks on this matter and answers at once: the window then shows your When done sentence, and Close ends it.

15See what it did: two tasks on the matter
Open the matter's Activities tab and pick the Tasks chip: the two tasks are there, Conflict check and Engagement letter, Regarding the matter, created as the person who clicked (open a task: its Created By names them; the timeline line itself is written by the system). The conflict check carries the note the button sent; with no due_by, neither has a due date. Under All, the timeline also shows the run of Matter Intake Tasks and the notifications its followers got. The run itself, with a tick on each step, is in Builder → Workflows, Matter Intake Tasks, on its Runs tab.

16Call it from a workflow's Action step
In any workflow, add an Action step. Under Runs, pick the operation: your published custom actions are in the list with Codossier Office's own. Then the Record it runs on (here the run's own matter; the table comes with the action) and Its inputs, by the action's field names, due_by and note, filled from the workflow's own inputs. Ours is New Matter Opening, on demand on the Matter table: the person who starts it gives the due date (required there), the Action step opens the intake tasks, and a Create record step adds a third task for the client kickoff call. One run on a cargo claim matter opened all three tasks, due on the date given. It answers names what later steps can read: run_id and status. See The workflow step reference.

17See what it is tied to before you change it
Back in the designer, Tied to now counts two callers. Click it: Called by lists every ribbon button, workflow step, dialogue and other action that calls it, and Runs lists the workflow and tables it uses. Read it before you change the input or switch the action off: a caller that sends a field you removed, or leaves out one you made required, will fail, and the list says so beside each one.

What next
- Logic that must run inside every save rather than when someone calls it: Plugin scripts.
- Every step a workflow can hold, the Action step among them: The workflow step reference.
- Ask the person questions first, then run the action on Confirm: Dialogues and ribbon buttons.