Salesforce Apex Enterprise Trigger & Batch Kit
Deploy bulkified trigger frameworks, resilient callouts, and 95%+ test coverage factories in Salesforce.
Architecture Overview & Problem Solved
Built from 7+ years of hands-on Salesforce engineering. Provides a clean, governor-limit-safe Trigger Handler framework with custom metadata bypass switches, Queueable chain managers, and LWC data tables.
This starter kit releases on 2026-10-14. Enter your email to receive an instant launch notification and a 20% discount code.
Tested Compatibility Versions
Salesforce API v60.0+ • SFDX CLI v2+
External API Costs
Zero external costs — runs natively on the Salesforce Platform.
Secrets & Credentials Handling
Uses Salesforce Named Credentials and External Credentials for all REST callouts.
Known Limitations
Requires Enterprise, Unlimited, or Developer Edition org with Apex enabled.
What's Included in the Package
- TriggerFramework.cls with dynamic bypass & recursion guard
- Queueable & Batch Apex retry engine with custom Platform Event logging
- TestDataFactory.cls for rapid, zero-seeAllData unit testing
- SFDX GitHub Actions CI/CD validation workflow
Installation & Setup Instructions
- 01Authenticate your target org via sf org login web.
- 02Deploy the core framework classes using sf project deploy start -d force-app.
- 03Extend TriggerFramework in your object handler classes.
Trigger.new -> 200 Account records updated to Tier__c = 'Enterprise'
1 SOQL query executed • 1 Queueable job enqueued • 0 Governor warnings
public inherited sharing class AccountTriggerHandler extends TriggerFramework {
public override void afterUpdate() {
List<Id> upgradedIds = AccountSelector.filterUpgradedEnterprise(
(List<Account>) Trigger.new, (Map<Id, Account>) Trigger.oldMap
);
if (!upgradedIds.isEmpty() && !System.isBatch() && !System.isFuture()) {
System.enqueueJob(new ProvisionEnterpriseWorkspaceJob(upgradedIds));
}
}
}Version Changelog
Added WITH USER_MODE FLS security enforcement across selectors.
Product FAQ & Licensing
Can Salesforce consultants use this across client orgs?
Yes, the license permits deployment across client orgs you manage.