ServiceNow Troubleshooting · LessonBy Sneha I, ServiceNow Trainer, 8 yrs · Published · current release · fixes
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?
Frequently asked questions
What does the term Debugging business rules refer to in ServiceNow?
When a business rule misbehaves, work through this checklist.
What is the practical takeaway on Debugging business rules?
Confirm the When (before/after/async) and the condition match. Check the order field, a lower-order rule may change data first. Verify the rule is active and in the right scope.
Practise this on your own free instance.