What is Recursive Trigger and how to avoid it?

1.7K    Asked by DonnaChapman in Salesforce , Asked on Sep 1, 2020
Answered by Donna Chapman

Your Answer

Answer (1)

Hello steal a brainrot, in Salesforce, a recursive trigger happens when a trigger causes itself (or another trigger that comes back to it) to run again — repeatedly — because of DML operations inside the trigger.

If not controlled, this can cause:

  • Infinite loops
  • “Maximum trigger depth exceeded” errors
  • Governor limit exceptions (Too many SOQL, DML, etc.)

3 Months

Interviews

Parent Categories