+ Start a Discussion

trigger question

I know that i asked this before and wanted to see if this is something that can be done now. 


Can a trigger (after delete, after insert, after update) kick off a workflow and/or and outbound message.




Mike Simonds

Greg HGreg H

I don't believe that can explicitly dictate that a workflow rule should fire or that an outbound message should fire within the code of an Apex trigger or class. Salesforce handles the execution order of those items and a good reference for that ordering is here: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers_order_of_execution.htm?SearchType=Stem&Highlight=workflow|Workflow|workflows||rules|Rules|Rule|rule