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-15-2025 08:45 PM
Hi @Sriram Pusuluri, an Action Assignment is what you're looking for
Check this link: https://www.servicenow.com/community/next-experience-forum/action-assignment-implemented-as-client-s...
Brgs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 08:54 PM
Hey @phgdet , You have to configure the workspace setting from the UI action you have created, follow this step;
- Workspace Settings:
- In the Workspace tab of the UI Action, you can define specific settings that apply to Agent Workspace.
- Available in Agent Workspace: Check this box to make the action visible in Agent Workspace.
- Workspace Form Button/Action: Decide whether this UI Action will be displayed as a button, a link, or in the menu of a form in Workspace.
If this helped please hit the helpful button,
For more detailed information regarding Workspace follow this link;
Agent Workspace UI action - examples - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 02:02 AM
@Gunjan Kiratkar @Anil Lande Any help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 02:27 AM
you will have to configure List Action for workspace on that table
check any of the OOBT ones
also check these links
Agent Workspace UI action - examples
How to use UI Actions in Workspaces
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