UI Action on Global table how to restrict to certain tables

Katie A
Mega Guru

Hello, There is a UI Action "Insert" on the "global" table.

I want to be able to remove this UI action from the CMDB tables, to prevent users from inadvertently making duplicates of CIs.

However, I do not want to disable the Insert button altogether.

How can I restrict this global UI action, but only for the CMDB tables?

In other words, if it is a CMDB table such as cmdb_ci, hide the UI Action button.

Thanks!

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

HI,



Just add the condition for UI action as


current.sys_class_name != "cmdb_ci";



This will hide the UI action from cmdb_ci table


View solution in original post

2 REPLIES 2

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

HI,



Just add the condition for UI action as


current.sys_class_name != "cmdb_ci";



This will hide the UI action from cmdb_ci table


Chris M3
Tera Guru

See the GlideTableHeirarchy, getRoot() function.   Note that the Root table of CMDB is 'cmdb_ci' in Fuji, but 'cmdb' in Geneva



ServiceNow Developers