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
| Event | Executes | Description |
|---|---|---|
| Do Before Insert | Server | Executes 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 Insert | Server | Executes after a new record has been committed into the database. |
| Do Before Update | Server | Executes 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 Update | Server | Executes after the updated record has been committed into the database. |
| Do Before Delete | Server | Executes 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 Delete | Server | Executes after the record has been deleted from the database. |