The CreatorCon Call for Content is officially open! Get started here.

Disable Export functionality for CMDB related tables without affecting other tables

Akash_Yadav
Tera Contributor

Hi Community,

 

I want the 'Export' button on all CMDB related tables to be visible for people that are part of specific groups.

This functionality/change should not impact the other tables.

 

Please suggest if there is any workaround for this
TIA

1 ACCEPTED SOLUTION

Saurabh Gupta
Kilo Patron

Hi,
You can add the additional condition as per your requirement in the record https://your_instance.service-now.com/sys_ui_context_menu.do?sys_id=d1ad2f010a0a0b3e005c8b7fbd7c4e28....
Sample Screenshot.

SaurabhGupta_0-1705858980835.png

C

If the provided solution meets your needs, kindly consider marking it as helpful and accepting it as the solution. This helps others who may have similar questions.


Thanks and Regards,

Saurabh Gupta

View solution in original post

4 REPLIES 4

Mark Manders
Mega Patron

The export functionality is a UI action, so you can limit its visibility like any UI action. Not sure if it's a table-related UI action, or a global one. It it's the latter, you could deactivate that and create 2 new ones: one for CMDB related tables, including the roles and one global one, excluding the CMDB tables (or exclude the CMDB tables from the existing one).


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Maik Skoddow
Tera Patron
Tera Patron

Hi @Akash_Yadav 

table sys_ui_context_menu holds the "Export" record and in the conditions fields you can add code that would hide the menu item if your conditions are fulfilled.

Maik

OlaN
Giga Sage
Giga Sage

Hi,

What export button are you referring to? Please explain.

If you are referring to the Export function in the context menu (shown in image below), then no, this runs on global table, meaning it's accessible on every table, and should not be changed.

export-menu-action.png

 

Saurabh Gupta
Kilo Patron

Hi,
You can add the additional condition as per your requirement in the record https://your_instance.service-now.com/sys_ui_context_menu.do?sys_id=d1ad2f010a0a0b3e005c8b7fbd7c4e28....
Sample Screenshot.

SaurabhGupta_0-1705858980835.png

C

If the provided solution meets your needs, kindly consider marking it as helpful and accepting it as the solution. This helps others who may have similar questions.


Thanks and Regards,

Saurabh Gupta