Business logic in triggers

Detect the presence of non-trivial business logic inside Apex triggers.

Lorenzo Frattini avatar
Written by Lorenzo Frattini
Updated over a week ago


Logic in triggers can't be exposed for test purposes and cannot be re-used anywhere else in  your org. As a best practice developers should avoid putting any business  logic inside triggers. A handler class should be used instead.


  • Apex triggers

Did this answer your question?