Activity › Forums › Salesforce® Discussions › Why apex trigger is written in handler class? Salesforce® Discussions Why apex trigger is written in handler class? Posted by Aditya on March 31, 2020 at 12:59 PM Why apex trigger is written in handler class? Anjali replied 6 years, 2 months ago 3 Members · 2 Replies 2 Replies Deepanshu Singh Member March 31, 2020 at 1:28 PM It is done to improve the readability and cleanliness of the code [adinserter block='9'] Anjali Member April 1, 2020 at 12:45 PM In reference to follow the best practice, trigger should be logic free and for the logic purpose we use Handler class. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me