- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 07:14 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 07:58 AM
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.
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 07:58 AM
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.
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 11:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2024 02:47 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2024 03:08 AM
Hi @shantul13 ,
putting it on condition it should work but i would recommend you to use configuration.
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------