+ Start a Discussion

Refactoring triggers



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.



Message Edited by asadim on 09-08-2009 01:48 PM
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.