Triggers
Triggers send events containing record data from an Object Type to an event Worker or an event-processing Agent (Legacy) for further processing. The event payload depends on the record operation:
- Post-insert: sends the new record after creation.
- Post-update: sends both the old and new versions of the record after an update.
- Post-delete: sends the final content of the record after deletion.
The receiving Worker or Agent can process the event, update other records, or enrich application data.
Send a Trigger to a Worker
You can use the Send to agent system action to send events containing record data to event Workers. Workers must be enabled for your tenant; see Contextual Workers for access requirements.
- Under Build > Object Types, open the Object Type and select Triggers.
- In the Post-insert, Post-update, or Post-delete section, select New trigger > System.
- Enter a Name and set System action to Send to agent.
- In Agent, search for your event Worker by name or ID and select the matching entry. Worker entries have a Worker badge.
- Leave Enabled on and select Create trigger.
- Create, update, or delete a test record for the selected trigger. Check the expected output or the Worker's logs. If processing doesn't start, see Logs or Event Processing Are Missing.
For example, a Post-insert trigger on an order Object Type can send each new record to an order-enrichment event Worker.
The picker lists Workers configured to scale on their event backlog. If your Worker is missing, check that the Worker is configured for event processing with a managed-event-worker template or a custom Compose service with messaging and keda. See Events and Schedules for Worker setup and event consumption.
Trigger Payloads
Managed event Workers receive record data in the invocation's payload (event.payload in TypeScript and Python). For Post-update triggers, the payload contains old and new properties with the two record versions. See What Your Handler Receives for the invocation contract.
In Legacy Flows, downstream nodes read the trigger payload from msg.event after Event Start.