- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2019 02:39 PM
I'm trying to grant someone delete rights on a custom table. Roles are defined in the table and the user has that role however the delete button doesn't appear on either the list or the record level. It only shows "update".
Do I need to update an existing UI action to make it appear or a create a custom UI action or something else?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2019 02:49 PM
HI KB,
You need to add a UI action to create that button. ACLs cover who has the rights to perform certain actions. That doesn't create buttons or initiate actions. The easiest way to add a delete button is to look in the global UI actions and then clone a basic delete button for your table. Don't change an existing one as that may create really nasty side effects. Be sure to include the necessary conditions, e.g. gs.getUser.hasRole().
Hope that helps.
:{)
Helpful and Correct tags are appreciated and help others to find information faster
:{)
Helpful and Correct tags are appreciated and help others to find information faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2019 02:47 PM
See if this helps.
https://www.servicenowelite.com/blog/2014/2/14/deletion-methods
Please mark my response as correct and helpful if it helped solved your question.
-Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2019 02:47 PM
- Navigate to the Global Delete UI Action: https://xxxxxxx.service-now.com/nav_to.do?uri=sys_ui_action.do?sys_id=57dc4c970a0a0b3400f8f0538d3faf...
- Change the Table to the one you want to activate the Delete button
- Remove && gs.hasRole('admin') part in the condition. This will leave current.isValidRecord() && current.canDelete()
- Now Insert it so a new specific ACL is being configured for your table. It will use your "delete" ACL on your table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2019 02:49 PM
HI KB,
You need to add a UI action to create that button. ACLs cover who has the rights to perform certain actions. That doesn't create buttons or initiate actions. The easiest way to add a delete button is to look in the global UI actions and then clone a basic delete button for your table. Don't change an existing one as that may create really nasty side effects. Be sure to include the necessary conditions, e.g. gs.getUser.hasRole().
Hope that helps.
:{)
Helpful and Correct tags are appreciated and help others to find information faster
:{)
Helpful and Correct tags are appreciated and help others to find information faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 01:35 PM
Thanks for this advisement , very helpful.