Disable delete button on CMDB Workspace

shantul13
Tera Contributor

Does anyone has any idea on how to disable/remove the "delete" functionality from CMDB workspace?

For Navigation

 

CMDB Workspace --> Quick Links --> CI Class List --> You can choose any Class --> Open the CI --> Next to Save Option there are three dots --> You will find the "Delete" option 

There is a UI Action Script but its Global.

 

https://xxxx.service-now.com/nav_to.do?uri=sys_ui_action.do?sys_id=cccac8a60b3303008e64aabcb4673ade

Or does anyone has any suggestions what modifications/customizations can be done to disable/remove the delete the functionality?

Note: - I just want to disable the "delete" functionality in CMDB Workspace.

1 ACCEPTED SOLUTION

Runjay Patel
Giga Sage

Hi @shantul13 ,

 

You can create new UI action on table for which you wanna hide this, for example if you wanna hide it for cmdb_ci then make copy of this OOB UI Action and give the same "Action Name as sysverb_ws_delete". It will hide the global one and show the child one. Now you can un tick workspace checkbox.

RunjayPatel_0-1734451091042.png

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

 

 

 

View solution in original post

9 REPLIES 9

Runjay Patel
Giga Sage

Hi @shantul13 ,

 

You can create new UI action on table for which you wanna hide this, for example if you wanna hide it for cmdb_ci then make copy of this OOB UI Action and give the same "Action Name as sysverb_ws_delete". It will hide the global one and show the child one. Now you can un tick workspace checkbox.

RunjayPatel_0-1734451091042.png

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

 

 

 

Hello @Runjay Patel ,

 

Thank you for your response. It worked for me.

shantul13
Tera Contributor

Hello @Runjay Patel,

 

In addition to this if I want "delete" to be visible to any specific role, how can we do that?
I tried in the condition section of the UI action that we created on the cmdb_ci table but its not working.
-- gs.getUser().hasRole('xxx role')

-- gs.hasRole('xxx role')
Any suggestions on the same.

Hi @shantul13 , 

putting it on condition it should work but i would recommend you to use configuration.

RunjayPatel_0-1735297712362.png

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------