Skip to content
Docs

When Table Rows Change

When Table Rows Change starts a flow when rows of one of your tables are added, edited or deleted. Use it to notify a team when a status changes, to enrich a row a portal visitor just added, or to keep another system in step with a table. You find it on the node picker’s Triggers — start the flow shelf.

The node has a single webhook handle, which connects into Start’s trigger handle. Like every inbound trigger it is not one of the run’s steps: it decides when a run starts and what the start data is, and the run itself begins at Start.

Every change Publicus makes to the table can start it, wherever it came from: the table’s own page, a portal page, the AI builder, an MCP client, or a flow’s table nodes, including an import. A change made outside Publicus, such as a restore from a backup, does not.

Two rules keep flows from starting each other forever:

  • A flow never starts itself. When a run of this flow changes the table it watches, the change does not start another run of it.
  • A chain of flows starting each other through tables stops after four steps.

Each change the trigger does not take is recorded with the reason, such as an edit that wrote none of the columns you watch. To see them, open the table and click Triggers: it lists the flows the table starts and its recent changes, each with the runs it started and why a flow skipped it. A change is recorded only while a trigger on the table is switched on.

$start->payload describes the change:

Field What it holds
table The table’s id and name.
action create, edit or delete.
rows Each changed row: its id, before (the row as it was, for an edit or a delete) and after (the row as written, for an add or an edit). At most 100 rows.
changedColumns The columns the change changed: for an edit, those whose value differs before and after (saving the edit form unchanged changes nothing); for an add, every column written. Empty for a delete.
via Where the change came from: table, portal, chat, mcp or flow.
by Who made it: memberId, portalIdentityId, or for a flow flowExecutionId and flowId.
truncated true when the change touched more than 100 rows and rows holds the first 100.

Without One run per row, a change to several rows, such as a bulk delete, is one run with every row in rows. With it, each row starts its own run, and the row’s id, before and after sit directly in $start->payload in place of rows.

The When Table Rows Change node's settings form, with the fields described below
The When Table Rows Change node's settings form, with the fields described below
FieldTypeDefaultDescription
Table (tableStoreId)string ✦ (required) — The table whose changed rows start this flow.
Rows added (onCreate)boolean (optional) true Start a run when a row is added.
Rows edited (onEdit)boolean (optional) true Start a run when a row is edited.
Rows deleted (onDelete)boolean (optional) true Start a run when a row is deleted. The run gets the row as it was.
Only when these columns are edited (columns)string (optional) — Only start on an edit that writes one of these columns: their names, separated by commas. Leave empty to start on any edit.
Changes made by flows (fromFlows)boolean (optional) true Also start when a flow changes the table. A flow never starts itself by changing a table it watches.
One run per row (perRow)boolean (optional) false Start one run per changed row instead of one run per change.
Without overlapping (withoutOverlapping)boolean (optional) false Prevent a new run from starting while a previous run for this trigger is still in progress. With “Overlap key” set, only a run about the same key blocks.
Overlap key (overlapKey)string (optional) — What a run is about, for the overlap rule: a JSON path into the payload, such as $.id with one run per row.

Fields marked ✦ accept expressions.