- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2021 08:41 PM
Hi
Can anyone suggest me the best way to remove 'DELETE' UI Action from incident table and it should not affect the parent task table.
i duplicated the DELETE ui action with less order and add one more condition in it-- '&¤t.getRecordClassName() !='incident';
but its not working .
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2021 11:23 PM
Hi,
you are checking with admin?
Did you check any other table level DELETE ACL on incident is allowing?
it worked for me even as an admin when I had 1 table level DELETE ACL on incident table
1) list - delete grayed out
2) form - delete button not shown
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2021 09:02 PM
Hi,
You can create a delete ACL on the Incident table and in the script, you can write:
answer = false;
This will remove the Delete UI Action for all the users. If you want System Administrators to have the UI Action visible then keep the checkbox true for Admin Overrides.
Please mark my answer as correct if this solves your issues.
Thanks,
Kartik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2021 09:11 PM
Hi Kartik,
what type should i need to give in ACL?
i tried it by record type , table- incident, script-answer=false;
it didnt worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2021 09:44 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2021 09:54 PM
Hi,
If you don't have table specific Delete UI Action then you need to make changes to Global UI Action.
This way it will hide delete UI Action on Incident form, for Admin as well.
Also the alternative is to modify Delete ACL's and restrict Delete Access for all users (uncheck admin override and add return false in advanced script)
Thanks,
Anil Lande
Thanks
Anil Lande