Salesforce Order of Execution Overview

#1MinuteTip In Salesforce, when you save a record, it goes through a series of steps before the record gets saved. For example, you may have defined triggers, workflow rules, flows, assignment rules, escalation rules etc. on your object. It will be important to know and understand the sequence in which these different components will get executed.

Here is a nice pictorial presentation from Salesforce Architects on the order in which different components are executed. You may want to take a print out and keep it front of you when designing the solution.

Salesforce Order of Execution Overview
Image Source:

References & Useful URLs

21 Different Monitoring & Auditing Tools in Salesforce

Monitoring & Auditing Tools in Salesforce

There are quite a few Monitoring & Auditing tools in Salesforce to help you keep your Salesforce org healthy, secure, operational & efficient. With these tools, Admins and developers can monitor the configuration and usage and troubleshoot errors. Also they can report & block unusual user activity and/or set up notifications.

If you’ve ever watched a movie with a superhero, they usually manage to pull out the best gadgets at the right time.

As an Architect, Admin, Consultant or Developer you need to be aware of these tools and should know when and how to make good use of them. But let’s start with the first step – that is being aware of all the tools that you have in your arsenal.

Order of Execution (Rules, Triggers etc.) in Salesforce & Debug Log

Salesforce has a bunch of rules that can be defined on objects and fields. For example, you can define validation rules, workflow rules, process builder, flows, assignment rules, escalation rules, auto-response rules, triggers etc.

Whether you are an administrator, consultant, developer, or architect – it is important for you to understand the order in which these rules and triggers are executed.

The following picture depicts the order of execution visually. (For finer details, please refer to the Apex Developer Guide URL mentioned under ‘References & Useful URLs‘ section below).

Scroll to Top