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
msimondsmsimonds 

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.

 

 

Thanks,

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

-greg