Background/Explanation: If you use Developer Console, and you open a Log file with the Analysis or All Perspective's enabled (Debug > Switch Perspective), you gain a "Save Order" tab that shows you the Save Order of execution for your various apex, workflow, validations, etc.

In this Save Order, things are color coded, but I cannot find any information online to determine the reason for these color codes or what they represent.

In my org, I am currently looking at a Save Order that runs the same apex more than once (expected because Save Order reruns apex after DML), but at the beginning of the Save Order the Trigger is listed in RED and then when its listed again later in the Save Order the same trigger is listed as ORANGE.

The Salesforce documentation I found on this subject does mention that they are color-coded, but does not go into any detail as to why, or how:


Question: What is the difference in color meant to represent?

3 Answers 3


According to the Winter 14 Release Notes

The Save Order tab displays a color-coded timeline of DML actions. For each DML action taken, save order elements are shown as boxcars in the timeline.

Unfortunately I cannot find any official documentation that specifies what the colors actually represent, but from my experience they are as follows.

  • Red = Before Trigger
  • Green = Validation Rules
  • Orange = After Triggers
  • Blue = Assignment Rules
  • Purple = Workflow Rules (I think Process Builder & Flow are in here also)

Official documentation for the Execution Overview Save Order.

enter image description here

The following colors are used to differentiate between elements:
Color : Type
Red : Before trigger
Orange : After trigger
Green : Validation rule
Blue : Assignment rule
Purple : Workflow rule


I don't have any source to confirm this, but from experience the only difference in the color-coding (besides the obvious things like validation is a different color than workflow) is to differentiate between triggers that have fired on a before event, and triggers that have fired on an after event.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .