O'Reilly logo

Mastering Application Development with Force.com by Kevin J. Poorman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required