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

Order of execution in salesforce?

Hi All,


As shown below the  execution of the process order is right  r not?if not so Please do the changes and let me know.



Apex class





Ankit AroraAnkit Arora

1. The original record is loaded from the database (or initialized for an insert statement)
2. The new record field values are loaded from the request and overwrite the old values
3. All before triggers execute (TRIGGERS)
4. System validation occurs, such as verifying that all required fields have a non-null value, and running any user-defined validation rules (VALIDATIONS)
5. The record is saved to the database, but not yet committed
6. All after triggers execute
7. Assignment rules execute
8. Auto-response rules execute
9. Workflow rules execute (WORKFLOW)
10. If there are workflow field updates, the record is updated again
11. If the record was updated with workflow field updates, before and after triggers fire one more time (and only one more time)
12. Escalation rules execute
13. All DML operations are committed to the database
14. Post-commit logic executes, such as sending email


Here is the reference :



Ankit Arora

Blog | Facebook | Blog Page

Avanish KumarAvanish Kumar

Order of execution in Salesforce

  1. The original record is loaded from the database
  2. System Validation Rules.
  3. Executes all before triggers.
  4. Custom Validation rules.
  5. Executes all after triggers.
  6. Executes assignment rules.
  7. Executes auto-response rules.
  8. Executes workflow rules.
  9. If there are workflow field updates, updates the record again.
  10. If the record was updated with workflow field updates, fires before and after triggers one more time. Custom validation rules are not run again.
  11. Executes escalation rules.
  12. If the record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the parent record. Parent record goes through save procedure.
  13. If the parent record is updated, and a grand-parent record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the parent record. Grand-parent record goes through save procedure.
  14. Executes Criteria Based Sharing evaluation.
  15. Commits all DML operations to the database.
  16. Executes post-commit logic. Ex: Sending email.

reference -



Avanish Kumar

Rahul ShawRahul Shaw

Pls. go through this updated link below:

Jancy MaryJancy Mary
@Rahul Shaw, thanks for sharing the standard Salesforce Article.

Part A - Client Side Validation
1. Javascript validation for all the dependent picklists

Part B - Server Side Validation
1. Records are loaded from the database to the in memory.
2. Loads the new record field value and overrides the old ones.
3. System validations at the layout and other places.
4. Before trigger gets executed.
5. System validation again gets executed.
6. execute duplicate record check.
7. Record gets saved but not yet committed to the database.
8. After trigger gets executed.
9. Execute the assignment rules.
10.Auto Response rule.
11. Workflow rules get executed.
12. Execute processes.
13. Escalation and approvals get executed.
14.Commits all DML operations to the database.
15. Executes post-commit logic, such as sending Emails.
Sahil Gupta 8Sahil Gupta 8
Order of Execution in Salesforce:
  1. All Before Triggers.
  2. System Validation Rules.
  3. Custom Validation Rules.
  4. All After Triggers.
  5. All Assignment Rules.
  6. All Auto-Response Rules.
  7. All Workflow Rules.
  8. All Escalation Rules.
  9. At Last, Post-Commit Logic.
Ian Fisher 15Ian Fisher 15
1. System Validation Rules
2. Apex Before Triggers
3. Custom Validation Rules
4. Duplicate Rules
5. Apex After Triggers
6. Assignment Rules
7. Auto-Response Rules
8. Workflow Rules
9. Processes
10. Escalation Rules
11. Roll-Up Summary Fields
Source: ADM-211 Advanced Administration Course.
Bob HatcherBob Hatcher
I advise everyone to look at the actual Salesforce documentation this (currently here ( since some of the above responses are incorrect or misleading. For example, Ankit's response above is from 2011 and indicates before triggers run before system validations, which is incorrect.
HowToDo ItInSalesforceHowToDo ItInSalesforce
Hi Techies,

I have listed down Order of execution in Salesforce, Check this out  Order of Execution in Salesforces in 15 Easy Steps

Pratichi DashPratichi Dash
Where does Process builder comes in this order?
@Pratichi Dash, along with the execution of Workflow Rules.
Ankush DurejaAnkush Dureja
You can check latest order of execution in this link:
Ajinkya AmbalkarAjinkya Ambalkar
Order of execution:

1) Standard validation rule
2) Before trigger
3) Custom validation rule
4) After trigger
5) Workflow rule
6) Process builder
kevin bearkevin bear is a "SaaS-just" arrangement, which means you must choose the option to send on their servers. SugarCRM, then again, permits clients to convey anyplace: in the cloud, on their own servers or even on SugarCRM's servers as a SaaS organization.
Mens leather jacket
Here we have a new addition here. We now have Before save flow which executes before triggers.
You can find updated details here:
Cynthia AshleyCynthia Ashley
Wow amazing article. Thank you so much for sharing this Thread. Please keep sharing more Thread like this
Grace Sachs Green Coat (
Emily JuanEmily Juan

Exact Order Execution
1. Custom validation rule
2. Standard validation rule
3. Before trigger
4. Workflow rule
5. Process builder
6. After trigger

Most selling Nicole Kidman Green Coat (

Paul MikePaul Mike
This is Paul Mike, a professional blogger I enjoy writing on multiple callings with a firm grip on specialty include digital marketing, Online Saler, entertainment, and e-commerce blogs I have been currently working with The Extra Discount ( master over the skills along with gaining information.
For More Visit Our Website.
Donald ShawDonald Shaw
Im Donald, by Proffession im a blogger, i have quite a passion to describe artistic values and inspiration in my words. My hobbies are Traveling,exploring and later blogging those experiences. I also follow latest fashion fashion trends and culture, Currently I am associated with The Extra Discount (" target="_blank) as a blogger
Daly dalyDaly daly
great written and come with approximately all important infos Crossword (
Paul Ben 9Paul Ben 9
Feel every moment of your vacation with Opodo. It helps you plan and book your vacation without breaking your budget. opodo gutscheincode 10 euro ( By visiting this website you can book flights, hotels, vacation packages, rental cars and more.
Judy A. WaltersJudy A. Walters

Are you a fashion freak, if yes then you would surely like some cool jackets and outfits on Jackets Junction (
Gambino TravotaGambino Travota
As a fashion lover, I loved Order of Execution in Salesforce. Please refer to this website to relax yourself:
Mark StvenMark Stven
Apex Classes help a lot when you do scraping or fatching content from 1 site to another. I also use on my workwear trousers ( website.
alexander 1357alexander 1357
The Notre Dame Rudy Irish Bomber Jacket (, worn by Sean Astin in one of his many appearances, is being copied. He wore this when portraying Rudy Reutigger. It's also famous for the stark contrast between yellow and black. A bomber jacket inspired by Irish ancestry. The combination of fleece and leather distinguishes the Notre Dame jacket.
junaid nazakatjunaid nazakat
With the best online shopping experience, Frishay is designed for our Worldwide customer's needs. Get the latest products with great discounts. For more details please visit my website. (
adam west 12adam west 12
"Something is happening in the crowd." It is then captured on the screen of a cart running along the course without a person on it. The cart turns right along the slope and descends. Georgia bulldogs letterman jacket (
lisa harris 58lisa harris 58
Very interesting discussion glad that I came across such an informative post. Keep up the good work friend. Asymmetrical Leather Jacket (
nazakat hussainnazakat hussain
Zauca is a website design in kolkata ( and development company that offers various services related to creating an online presence. Their main focus is on designing and developing websites for businesses, organizations, and individuals. They offer a range of packages that cater to different needs and budgets, from basic websites to e-commerce solutions and custom web applications.
mrcseoab mrcseoabmrcseoab mrcseoab
Thank you for posting medical office assistant course program
mrcseoab mrcseoabmrcseoab mrcseoab
Thank you for posting medical office assistant course program (
Alexander LaurenAlexander Lauren
I simply wanted to express thankfulness for your blog's wonderful balance of easy-to-understand and original content. I also want to show you this wonderful Dwight Eisenhower jacket ( If you did it, it would be helpful.
Source giftingerSource giftinger ( is your one-stop-shop for finding the perfect gift for any occasion. Whether you're shopping for a birthday, anniversary, or just because, we have a wide selection of unique and thoughtful gifts to choose from. From personalized gifts to home decor and gadgets, we have something for everyone. Shop now and make your loved ones feel special with a gift from
lelo Lelowebsitelelo Lelowebsite
thnaks for posting i very helpful ..

We are a leading website designing company in Delhi NCR (, providing innovative and professional web solutions to businesses. Our team of experts specializes in creating visually appealing websites that are user-friendly, responsive, and optimized for search engines. Trust us to enhance your online presence and attract more customers.
Muhammad Junaid 2Muhammad Junaid 2
With a simple and 100% online process, our technology provides an interactive loan offer in 7 minutes and same day funding.  Nectar provides the simplest, fastest and most transparent way for kiwis to access finance.
peter shawnpeter shawn
Wow its a very good post. The information provided by you is really very good and helpful for me. Keep sharing good information.I bookmark your blog because I found very good information on your blog Pink Bape Hoodie (
peter shawnpeter shawn
Extremely go through article. I have never seen such beautiful article. Learn many things from this I hope you continue to have high-quality articles like this to share with everyone! Ted Lasso Jacket (
peter shawnpeter shawn
Very nice Article Keep it up for your good Work Thanks for sharing information The content was really very interesting. I am really thankful to you for providing this unique information You have a good point here! Loki Season 2 Outfit (