Apex Trigger Bypass And Killswitch Patterns

Runtime mechanisms to disable Apex triggers without commenting out code: Custom Metadata kill switches via Trigger_Setting__mdt, Custom Permission gates via FeatureManagement.checkPermission, Hierarchy Custom Settings, and TriggerControl static-state bypass for nested operations. NOT for a handler re-entering itself — use apex/recursive-trigger-prevention. NOT for gating a business feature — use apex/feature-flags-and-kill-switches.

PranavNagrecha b5be0e3 7 files · 33.8 KB Updated 15 repo stars

File contents

PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/apex/apex-trigger-bypass-and-killswitch-patterns commit b5be0e383b

Frequently asked questions

npx skillmds add pranavnagrecha/apex-trigger-bypass-and-killswitch-patterns