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
MubarakMubarak 

Trigger Master???

Hi All,

Can anyone tell me what is the difference between Trigger Master,Trigger Helper,Handler Class and Trigger Factory class.

Thanks
 
Amit Chaudhary 8Amit Chaudhary 8
Please check below post. I hope that will help you with example.,
1) http://amitsalesforce.blogspot.in/search/label/Trigger
2) http://amitsalesforce.blogspot.in/2015/06/trigger-best-practices-sample-trigger.html

1) One Trigger Per Object
A single Apex Trigger is all you need for one particular object. If you develop multiple Triggers for a single object, you have no way of controlling the order of execution if those Triggers can run in the same contexts

2) Logic-less Triggers
If you write methods in your Triggers, those can’t be exposed for test purposes. You also can’t expose logic to be re-used anywhere else in your org.

3) Context-Specific Handler Methods
Create context-specific handler methods in Trigger handlers

To create the good framework of trigger we alwsy devide the trigger into muliple part. Please check below post

Trigger Best Practices | Sample Trigger Example | Implementing Trigger Framework
http://amitsalesforce.blogspot.in/2015/06/trigger-best-practices-sample-trigger.html

Please let us know if this will help you