Last updated
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.
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.
Endpoints: Save Schema Trigger.
Last updated