The SFDC-trigger-framework

A couple of years ago, Salesforce MVP Kevin O'Hara released on GitHub the SFDC-trigger-framework. You can find it at https://github.com/kevinohara80/sfdc-trigger-framework. There are a number of trigger frameworks available for the platform, but this one is my favorite and the one I highly recommend. Since SFDC-trigger-framework is a bit of a mouthful, I will refer to it as the framework. The framework allows us to separate the logic from triggers in a way that allows us to create a deterministic order for those triggers to fire, and in a better way, for us to test the logic triggers. Because the trigger interface is controlled by Salesforce, very little of the actual trigger file will be different than traditional trigger ...

Get Mastering Application Development with Force.com now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.