How to add UI Action in workspace list view

Sriram Pusuluri
Tera Contributor

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.

 

SriramPusuluri_0-1747363013007.png

 

 

Any Help?

5 REPLIES 5

phgdet
Mega Sage

Hey @phgdet , You have to configure the workspace setting from the UI action you have created, follow this step;

  1. 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

Sriram Pusuluri
Tera Contributor

Ankur Bawiskar
Tera Patron
Tera Patron

@Sriram Pusuluri 

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 

AnkurBawiskar_0-1747906064304.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader