How to add UI Action in workspace list view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 07:39 PM
Hi Team,
We have created a custom UI Action on the case table, the UI Action available on the case form, when we click on that case, it needs to be cancelled automatically without filling mandatory fields. It is working fine in both native and workspace view as well. below is the code for native view, workspace also added the code
function removeMandatory(){
g_form.checkMandatory = false;
gsftSubmit(null, g_form.getFormElement(), 'quick_case_closure');
}
if (typeof window == 'undefined')
serverRemove();
function serverRemove(){
current.state = 7;
current.update();
action.setRedirectURL(current);
gs.addInfoMessage('Case has been cancelled directly from state "New".');
}
Now I want to add the same button in the workspace case list view. if any user selects one or more record in the list view, then if they click on UI Action, it needs to cancel all the case that they have selected. if they selects one case then it needs to cancel one case record, if they select three records in the list, then it needs to cancel all the three records.
Any Help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2025 09:30 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader