function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nagamalli tadikondanagamalli tadikonda 

trigger example

how to write one object for one trigger using handler class ? 
Rahul_kumar123Rahul_kumar123
Hi Nagamalli,

 Best practice to have all your trigger logic inside one "handler class" and only have one trigger for each object.Please refer the below link further references.
I hope it will be helpful.

Best Regards
RahulKumar
NagendraNagendra (Salesforce Developers) 
Hi Nagamalli,

Please check with below links where One Trigger per One Object is explained very clearly which should suffice your requirement.

http://salesforce.stackexchange.com/questions/136442/why-we-are-create-handler-class-of-trigger-in-salesforce

http://www.sfdc99.com/2015/01/19/the-one-trigger-per-object-design-pattern/

Hope this helps.

Best Regards,
Nagendra.