Anyone know what the table is or how to find all policy actions??

Wendy Peterson
Giga Guru

We have a value on change requests that is hidden. I wanted to know if there is a easy way to identify all the values on that table without going into each UI Policy to see what actions are below it? TIA

1 ACCEPTED SOLUTION

jimnicholson
Giga Guru

Hi Wendy,



I believe the table you need is sys_ui_policy_action   (sys_ui_policy_action.list in navigator)



Something like one of these would return all UI Policy Actions on the change_request table.



{your instance}/nav_to.do?uri=/sys_ui_policy_action_list.do%3Fsysparm_query%3Dui_policy.table%253Dchange_request%26sysparm_first_row%3D1%26sysparm_view%3D



or


{your instance}/nav_to.do?uri=/sys_ui_policy_action_list.do%3Fsysparm_first_row%3D1%26sysparm_query%3Dtable%253Dchange_request%26sysparm_view%3D


View solution in original post

16 REPLIES 16

Rajesh Mushke
Mega Sage
Mega Sage

How do you know UI Policy is Hiding the value?


some times we can hide using Client scripts as well...




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Rajesh Mushke
Mega Sage
Mega Sage

Any way you can use UI Policy Debugger, Please follow below procedure:



Debugging UI Policies

There are different strategies for debugging UI Policy Scripts, UI Policy Actions, and UI Policy conditions.




Debugging UI Policy Scripts

Debug UI Policy Scripts using the same strategies discussed earlier in this module:


  • JavaScript Log and jslog()
  • Field Watcher
  • Try/Catch
  • Debugging tools built into web browsers (browser dependent)


Debugging UI Policy Actions

Use the Field Watcher to debug UI Policy Actions. Note that the Short description field value appears in the log.UI Policy Actions are logged in the Field Watcher.



Debugging UI Policy Conditions

Follow these steps to enable UI Policy debugging:


  1. In the main ServiceNow browser window, use the Application Navigator to open System Diagnostics > Session Debug > Debug UI Policies. This modules executes a script which turns on logging for UI Policies.UI Policy Debugging enabled.
  2. Open the JavaScript Log and Field Watcher.
  3. Open the form of interest and force the UI Policy you are debugging to execute by changing field values as necessary to meet the UI Policy condition.
  4. Examine the debugging information in the JavaScript Log.Debug the UI Policy Condition in the JavaScript Log.

Note these points in the debugging information:


  1. The Short description value for the UI Policy and table name.
  2. The statement of the condition(s) and result of evaluating that line of the condition.
  3. The overall value returned by the condition.
  4. UI Policy Actions setting field attributes.

When you are done debugging, use the Application Navigator to open System Diagnostics > Session Debug > Disable UI Policies Debug.


Please Refer:


https://developer.servicenow.com/app.do#!/training/article/app_store_learnv2_scripting_istanbul_clie...


Debug UI policies


JavaScript debug window




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Rajesh Mushke
Mega Sage
Mega Sage

Hello Peterson,



Any update on this?



Would you mind please close this thread, then only this will be helpful for other community user.


thanks in advance.....!!!



If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.


If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

It was not answered that was for "Catalog Policy Actions" not ones on Change Requests. Sorry it has not been answered.


are you able to debug UI Policy?




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke