How to tell which business rule is being applied

Brent Cox
Mega Guru

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! 

1 ACCEPTED SOLUTION

Aniket Chavan
Tera Sage
Tera Sage

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:

 

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

View solution in original post

5 REPLIES 5

vordullasd
Giga Contributor

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.