How should the deve...
 
Notifications
Clear all

How should the developer handle the recursive trigger?

1 Posts
1 Users
0 Likes
44 Views
Tuan
 Tuan
(@shippertuan)
Noble Member
Joined: 7 months ago
Posts: 374
Topic starter  

A developer has written an After Update trigger on Account. A workflow rule and field update cause the trigger to repeatedly update the Account records.

How should the developer handle the recursive trigger?

  • A . Deactivate the trigger and move the logic into a Process or Flow
  • B . Deactivate the workflow rule to prevent the field update from executing
  • C . Use a static variable to prevent the trigger from executing more than once
  • D . Use a global variable to prevent the trigger from executing more than once

Show Answer Hide Answer

Suggested Answer: C

   
Quote
Share: