How to use UI Action in workspaces.

niveditakumari
Mega Sage

Hi, 

 

How to use UI Action in workspaces. 

I have ui action button Transfer to IT in platform view on HR case form and when user click on that button dialog box has been opened and when user select assignment group and check that checkbox that HR case is cancelled and new incident is getting created and same thing I need to achieve on agent workspace view and we have added Transfer to IT ui action button in agent workspace and when we click on that nothing is happening. 

 

Please find attached screenshot : 

niveditakumari_0-1713991960538.png  

 

We have written code to show dialog box in agent workspace after clicking on Transfer to IT button. 

niveditakumari_1-1713991971734.png 

 

niveditakumari_2-1713991996857.png

 

niveditakumari_3-1713992006225.png

 

niveditakumari_4-1713992016548.png

 

Can you please help me to achieve same functionality which we have in platform view. 

 

Regards, 

Nivedita 

 

 

 

 

 

2 REPLIES 2

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

@niveditakumari not all UI Actions are transferable 1-1 for the configurable workspace when scripting. I noticed in the print screen your UI Action does not have the "Format for Configurable Workspace" selected. I would start there and see if this functions for you in the configurable workspace as it exists currently. Be sure to flush cache after you save and before you test.

 

If my answer has helped with your question, please mark my answer as an accepted solution and give a thumbs up.

Regards,

Mike

Hi @michaelj_sherid

 

I have selected Format for configurable workspace please see second screenshot. 

When I click on ok and checkbox should be selected in dialog box then it should cancel that HR case and create new incident which will assign that incident to assignment group which we have selected in dialog box assignment group field.

Can you please help me to achieve that. 

 

Regards, 

Nivedita