Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- General Development
- :
- execution order of workflows, apex trigger and val...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
execution order of workflows, apex trigger and validation rules
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-07-2007 02:48 AM
I'm sure this question has been asked from time to time, but I could not find the answer with my search strings:
Is there a specified execution order of apex triggers, workflow rules and validation rules?
I have some problems that depend on this execution order and need to know in wich squence these were executed.
Thanks for your help!
Jochen
Solved! Go to Solution.
Re: execution order of workflows, apex trigger and validation rules
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-07-2007 12:42 PM
From Help and Training:
Salesforce processes any rules in the following order:
- Validation rules
- Assignment rules
- Auto-response rules
- Workflow rules (with immediate actions)
- Escalation rules
Workflow field updates that run based on an approval process or time-dependent action do not trigger any rules.
Re: execution order of workflows, apex trigger and validation rules
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-08-2008 12:04 PM
1. All before triggers execute
2. System validation occurs, such as verifying that all required fields have a non-null value, and running any user-defined
validation rules
3. All after triggers execute
4. Assignment rules execute
5. Auto-response rules execute
6. Workflow rules execute
7. Escalation rules execute
8. Post-commit logic executes, such as sending email
Re: execution order of workflows, apex trigger and validation rules
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-24-2008 01:18 PM
George
Re: execution order of workflows, apex trigger and validation rules
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-13-2008 11:40 AM
http://www.x2od.com/2008/11/09/salesforce-order-of
Re: execution order of workflows, apex trigger and validation rules
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-09-2009 12:47 PM
Hi George,
I have the same problem... Did you resolve it?
Thanks,
Beatriz
Re: execution order of workflows, apex trigger and validation rules
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-16-2009 04:07 AM
Hi Beatriz,
I think you should use a kind of synchronization mechanism. You could create a further custom field lets call it sync__c.
The first workflow gets a second imdiate field update and sets sync__c to true. The second workflow rule looks for sync__c equals true and fires the email (or what ever you like). The second workflow has to reset the sync__c to false with an other imdiate field update.
Lets take again George example. If the change of ownership will only be triggered by this first workflow you could use the ISCHANGED(OwnerId) function in the secound workflow rule to make sure the ownerid has been changed. This would be a kind of synchronization mechanism as well.
Greetings,
Jochen
Re: execution order of workflows, apex trigger and validation rules
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-29-2011 12:31 AM
what are escalation rules?
in workflow triggers execute first or after workflows plz help me i want to know
can we change the order of execution of triggers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-29-2012 07:38 AM
HI i just woud like to know that cn we change the order of execution of triggers..while executing??

