Skip to main content

Overview

Last updated 13/07/2026

Table and Connection Events

Tables and Connections in Five include a set of server-side events that execute automatically in response to changes in your data. These events are triggered during key stages of a record's lifecycle, when data is inserted, updated, or deleted, allowing you to run custom logic at precise moments before or after the database is modified.

Because these events operate directly on data, they are always executed on the server. This ensures consistency, reliability, and control over how records are created, changed, or removed.

Each event provides access to the relevant record context at the time it executes. For example, before an insert or update, you can interact with the incoming data, and during updates and deletes, you can also reference the existing record.

Events

EventExecutesDescription
Do Before InsertServerExecutes before the new record is committed into the database, the context contains an object called
new
which contains the new record being inserted in the database.
Do After InsertServerExecutes after a new record has been committed into the database.
Do Before UpdateServerExecutes before the updated record is committed into the database. The context contains two objects called
old
and
new
which contain the old record currently existing in the database, and the new updated record being updated in the database.
Do After UpdateServerExecutes after the updated record has been committed into the database.
Do Before DeleteServerExecutes before the record is deleted from the database, the context contains an object called
old
which contains the old record being deleted from the database.
Do After DeleteServerExecutes after the record has been deleted from the database.