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
asadimasadim 

Refactoring triggers

Hi,

 

Is there a way to put method X in a separate class and have multiple triggers call it? This is as opposed to hardcoding X in each trigger that requires it. If this is possible please let me know how I should go about it.

 

Thanks.

Message Edited by asadim on 09-08-2009 01:48 PM
NOTSOFASTNOTSOFAST
Yes -- designating a method as public or global will make it available to your triggers. The force.com cookbook should have some examples that will get you started.