Skip to main content
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

Rationale

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.

Scope

  • Apex triggers

Did this answer your question?