Introduction
In this module, you learn about the different object triggers. Each object (such as tables, pages, and codeunits) has a number of properties. In addition to these properties, each object has a number of triggers.
Triggers are predefined functions that the system automatically generates. As a developer, you can write code that runs as these functions are triggered. The OnOpenPage trigger (which is a trigger of the Page object) runs when a user opens a page.
The OnInsert trigger on the table runs when a new record is inserted into the database. If you want to perform extra validations on the data before it's inserted into the database, you can do that in the OnInsert trigger.
This module describes the different table and field triggers for the Table object. You also learn more about the available page triggers, controls, and action triggers for the Page object.
Additionally, you learn about event-based architecture. With events, you can connect to the core application without having to modify the existing code. When an event occurs, you can react with your own code to these events.