Srikanth_Peru
Tera Guru
Tera Guru

Hello,

 

You know how to debug Server-side scripting like Business Rule, Script include Script Actions etc.., using Script tracer, Script Debugger, Session log

 

I want to share you with you all how to debug UI policy ServiceNow using the below methods

Navigate to the System Diagnostics > Session Debug > Debug UI Policies

Srikanth_Peru_0-1736980969084.png

 

Click on confirm button

UI Policies debugger will be activated

Srikanth_Peru_1-1736980969087.png

 

To open the JavaScript debug window use “ctrl+shift+i” or right click on the browser select “inspect

Open a New/Existing incident record

I have created a UI Policy to make the description field mandatory and clear the value to true when subcategories were selected as antivirus

On the debug window you can see the below results

Srikanth_Peru_2-1736980969101.png

 

And, if we are using the UI 16 interface you can open the JavaScript log

Srikanth_Peru_3-1736980969108.png

Open a New/Existing incident record

Srikanth_Peru_4-1736980969126.png

 

To disable the Debug UI policy

Navigate to System Diagnostics > Session Debug > Disable UI Policies Debug

Srikanth_Peru_5-1736980969133.png

 

Click on Confirm button

Srikanth_Peru_6-1736980969135.png

 

 

Thank you,

Srikanth