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
Deepak PansariDeepak Pansari 

Workflow rule Action execution order

Hi All,

I have created all four action for a workflow:

1 New Task 
2 New Email
3 New Field Update 
4 New Outbound Message 

Can someone tell me , In which order this four cation are executed ie. 1 -> 2 -> 3 -> 4

Thanks,
Deepak
werewolfwerewolf
The execution order for workflows are currently undefined.  Some on this board will tell you that it appears to execute in the order in which the workflow actions were created, but I wouldn't depend on that if I were you.  Also it's not out of the question that some actions may be executed in parallel, i.e. at the same time.
ScrapsScraps
I have been looking at the debug log for an Account Save, and it appears the Workflow rules are firing in some random order - always the same order, but not based on when they were created, modified, alphabetical or anything else I can see.
werewolfwerewolf
That is what I said -- there is no defined order.  They may be running in parallel so they can complete at any time with respect to each other.
sandip Kulkarnisandip Kulkarni

check the debug log you will get following order
WF_FIELD_UPDATE
WF_ACTION_TASK
WF_EMAIL_ALERT
WF_OUTBOUND_MSG

RittuRittu

One thing for sure, all field updates will be fired first. Refer below link.

http://login.salesforce.com/help/doc/en/workflow_rules_considerations.htm