ServiceNow Troubleshooting · LessonBy Sneha I, ServiceNow Trainer, 8 yrs · Published · Updated · current release · fixes
ServiceNow Debugging business rules
Why a rule did not fire, and how to find out.
Quick answer
When a business rule misbehaves, work through this checklist.
When a business rule misbehaves, work through this checklist.
- Confirm the When (before/after/async) and the condition match.
- Check the order field, a lower-order rule may change data first.
- Add
gs.info()logging and watch the system log. - Verify the rule is active and in the right scope.
- Watch for recursion from
current.update().
Try it YourselfJavaScript
▸ Press Run to execute.
Runs in a sandbox in your browser. Mock gs and GlideRecord and sample data are provided.
Quick check
+0 XPStreak ×0
Question 1 of 2
What controls which rule runs first?
Practise this on your own free instance.