thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Business Platforms & EA · Advanced

Recursive Trigger

Situation where a trigger's DML causes the same trigger to fire again, potentially looping until limits are hit.

Definition

Recursion is controlled with static variables or sets of processed IDs that persist for the transaction.

Example

if (!AccountHandler.processed.contains(a.Id)) { ... }

Exam tip

Static variables persist for the duration of a transaction, which is why they are used for recursion control.

Related terms