Salesforce Trigger Frameworks

•
9
•

Implements and refactors Salesforce Apex trigger patterns including TriggerHandler, FFLIB Domain, and TDTM for scalable architecture.

This skill provides specialized guidance for implementing advanced Apex trigger architectures within Salesforce environments. It helps developers transition from unmanaged trigger logic to professional handler-based patterns, offering standardized templates for the Pragmatic TriggerHandler, FFLIB SObjectDomain, and Table-Driven Trigger Management (TDTM). By incorporating built-in mechanisms for recursion prevention, bypass logic for data migrations, and automated context routing, it ensures that Salesforce applications remain performant, maintainable, and compliant with enterprise-grade development standards.

主要功能

01Sophisticated recursion control using depth counters and ID sets
02Metadata-driven TDTM dispatcher patterns
039 GitHub stars
04Declarative and programmatic bypass mechanisms for data operations
05Standardized TriggerHandler base class with context-aware routing
06FFLIB SObjectDomain implementation for enterprise applications

使用场景

01Consolidating multiple triggers on the same SObject to resolve execution order issues
02Implementing bypass logic to suppress triggers during high-volume data migrations
03Refactoring legacy 'fat' triggers into clean, handler-based architectures