- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 06:44 AM
Hello,
Is there any way to tell when a certain business rule or other script is applied? I did some problem management upgrades over the weekend and now my incidents are being set to active=false whenever the incident state changes to In Progress. I am just wondering if there is a way to set logs or something to be able to pin point what is triggering this behavior? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 07:05 AM
Hello @Brent Cox ,
In ServiceNow, you can use the Script Tracer to identify which business rule or script is being applied during a transaction.
1. Go to Script Tracer in the left navigation pane (admin role required).
2. Click "Start Tracer" and perform the transaction that triggers the script.
3. Review the Script Tracer table to identify the relevant script by checking "File Name," "File Type," "Table," and "Line Number" columns.
4. Click on a row to see detailed information in the State, Script, and Transactions tabs.
5. Use the information to debug or edit the script as needed.
6. Click "Clear trace" when finished.
below are the links which can help you to understand about Script tracer concept:
- ServiceNow Script Tracer Demonstration
- Script Tracer - How to trace backend Running scripts in ServiceNow #servicenow @NOWsupport
- Script Tracer and debugging scripts
- Script Tracer
Let me know your views on this and Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks,
Aniket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2025 01:36 AM
In every organization—whether you’re approving a loan, processing an order, or setting a product price—business rules are silently driving decisions. But here’s the catch: unless those rules are clearly documented and traceable, they become a black box.