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

Infinite cosmic power, itty bitty safety rope

As I said before, triggers on the Force.com platform are incredibly flexible. That flexibility comes at the cost of safety and structure. Aside from the basic syntax of a trigger header Trigger UpdateContactPhoneNumberOnCase on Contact (after update) {, there are no hard and fast rules we have to follow. This often leads to objects having multiple, long, or complex triggers. Among the many freedoms you have with triggers, you have the ability to create multiple triggers on the same object. For instance, you can have 2 or 200 triggers on the account object. As your org grows through the years, you can imagine the number of triggers on the same object rising, not declining. However, imagine a scenario ...

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