Manage Trigger Handlers

Trigger Handler records are a fundamental part of Table-Driven Trigger Management (TDTM). The Trigger Handler object is a Salesforce object like any other (Accounts, Contacts, etc.). Fields on the object manage the behavior of the triggers built within the TDTM framework. With just a few clicks, you can change the way your code behaves.

For example, the Active field specifies if a piece of code, an Apex class, runs when it's called by the trigger. Load Order controls the sequence in which Apex classes for the same object run. Usernames to Exclude deactivates an Apex class, but only for the users you specify. These and other settings are controlled through fields on Trigger Handler records.

Your Education Data Architecture package includes a Trigger Handler record for each of the package's Apex classes; you don't have to create them when you install Education Data Architecture. For any custom Apex class that you plan to include in the TDTM framework, create a Trigger Handler record that references it so that you can accurately control the behavior of your code. We won't go into the details of how to create Apex classes for TDTM here—just remember that when you do, Trigger Handlers are part of the deployment process.

To prevent duplication of the automation caused by reentrancy, maintain one trigger per object.

For more information, see Table-Driven Trigger Management (TDTM).