Created
January 13, 2024 15:05
-
-
Save TheShubhamVsnv/b25fe429759acce7e83ecd72f0c1c2a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Apex Trigger example with Recursive Depth Limit | |
trigger CustomObjectTrigger on Custom_Object__c (before update) { | |
if(RecursionHandler.recursionDepth < RecursionHandler.maxDepth) { | |
RecursionHandler.recursionDepth++; | |
// Add your trigger logic here | |
RecursionHandler.recursionDepth--; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment