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
Zuinglio Lopes Ribeiro JúniorZuinglio Lopes Ribeiro Júnior 

Trigger Frameworks: Are they the best available approach?

Hello folks,

I have a need to improve the way I develop triggers - currently I am using more than one trigger per object with all logic within it. I am aware that it is, probably, the worst way to do it.  I have been analysing all the techniques and during my searches, I have come across with the following article: https://developer.salesforce.com/page/Trigger_Frameworks_and_Apex_Trigger_Best_Practices

It would be important and tremendously welcomed, have your opinion to decide which approach I should adopt.
Balaji BondarBalaji Bondar
Use below link:

https://developer.salesforce.com/page/Trigger_Frameworks_and_Apex_Trigger_Best_Practices

Important :
If this is what you were looking for then please mark it as a "SOLUTION" or You can Click on the "Like" Button if this was beneficial for you.
Jagannatha Reddy BandaruJagannatha Reddy Bandaru
Hi Zuinglio,

You better to write all the logic in controller and call that classname and method with in trigger.

like that we can avoid multiple triggers on single object.

Thanks,
Jagan