For the complete documentation index, see llms.txt. This page is also available as Markdown.

Schema Triggers

React to record changes in one collection.

Where: Database β†’ Collections β†’ collection β†’ Triggers Β· /projects/<project>/db/schemas/<schemaName>/triggers/new Β· …/<triggerId>/edit

Screenshot TODO β€” capture comes from testing-plan area 02-triggers.

Schema triggers fire on record events for one collection. That is why, unlike other modules, schema trigger API calls carry a schemaId (sch_…) next to the trigger id (trg_…). Collections that have triggers show a small flame icon in the Collections list β€” it deep-links to this tab.

Fields

  • When β€” the event: When inserted, When updated, or When deleted. The record's data is passed to the action as tokens (@Model.…); the update event also carries the record's previous values.

  • Then β€” the action that runs: send an email, push, or SMS from a template, call a webhook, publish a realtime (SSE) event, run a code function, or run an installed marketplace function.

  • Name the trigger (required) β€” e.g. When an order is inserted, call the fulfilment webhook β€” plus an optional Description.

  • Is this trigger enabled? β€” a disabled trigger stays saved and editable but does not fire.

  • Order and Break execution queue on failure β€” control the run order when several triggers listen to the same event, and whether a failure stops the ones after it.

How trigger actions and delivery settings work in detail is explained in Triggers.

Use it from code

Database β†’ Triggers

API reference

Endpoints: Save Schema Trigger.

Last updated