Were you aware how many times your triggers calls?

Published in Articles

You may know order of execution but did you realize how many times your triggers calls? Let's wrap this up.

Here are some statistics how many times your trigger calls in different cases:
Scenario details # of trigger calls # of workflow calls # of process calls
Apex Trigger 1 0 0
Apex Trigger and one Workflow Rule 2 1 0
Apex Trigger and two Workflow Rules 2 1 0
Apex Trigger and Process Builder 2 0 1
Apex Trigger and two Process Builders 3 0 1
Apex Trigger, Workflow Rule and Process Builder 3 1 1
Apex Trigger, Workflow Rule and two Process Builders 4 1 1
Apex Trigger, two Workflow Rules and two Process Builders 4 1 1

As you can see it is pretty critical to implement triggers efficiently. Here are some basic recommendation to implement trigger logic effectively:

Useful links:

Comments powered by CComment