File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Server-Side Components/Business Rules/Prevent Creation of Recursive BR Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ Using current.update() in Business rule is not recommended from servicenow due to following reasons-
2+ 1 . Before- Records will be saved automatically after BR executes so using current.update is redundant
3+ 2 . After- Triggers all "before" BRs again causing recursion calls and performance issue
4+ 3 . Async- Same issue as in After
5+ 4 . Query- current object doesn't exist and will cause error
6+ 5 . Display- Runs before UI is rendered. Using current.update doesn't make sense.
7+
8+ To avoid such scenarios, a business rule can be configured on the 'sys_script' table will trigger an error message and
9+ block the creation of any new business rule if it detects the use of current.update() within the script.
10+
11+ Runs: onBefore insert.
You can’t perform that action at this time.
0 commit comments