Salesforce Trigger Frameworks
Implements and refactors Salesforce Apex trigger patterns including TriggerHandler, FFLIB Domain, and TDTM for scalable application development.
This skill provides comprehensive guidance for implementing professional Salesforce Apex trigger architectures, helping developers move beyond basic trigger logic to sophisticated, enterprise-grade frameworks. It automates the generation of base classes, provides robust recursion prevention logic, and establishes registry-based bypass mechanisms essential for large-scale data migrations. Whether adopting the Pragmatic TriggerHandler, FFLIB Domain layer, or Table-Driven Trigger Management (TDTM), this skill ensures your Salesforce triggers are bulkified, maintainable, and architecturally sound.
Key Features
01Pragmatic TriggerHandler base class generation with context-aware routing
02Advanced bypass mechanisms via code or Custom Metadata
03FFLIB Domain layer implementation for Apex Commons integration
04Table-Driven Trigger Management (TDTM) for metadata-driven execution
059 GitHub stars
06Built-in recursion control and execution depth monitoring logic
Use Cases
01Resolving infinite recursion and DML loop errors in complex SObject relationships
02Refactoring legacy bare trigger logic into clean, handler-based architectures
03Implementing bypass logic to suppress triggers during bulk data migrations