Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Why UI Action is not working in Service Operation Workspace

Alon Grod
Tera Expert

Hi,


I have this UI Action and its working fine in the backend when I go to incident.list. However, whenever I go to Service Operation Workspace and I click on the button nothing happened.
What could be the reason that its working in the backend but the same script does not work in SOW?

WhatsApp Image 2023-07-02 at 12.48.53.jpeg

6 REPLIES 6

Dibyaratnam
Tera Sage

GlideModal is not supported in workspace client script.

Prince Arora
Tera Sage

@Alon Grod 

 

Brother you need to do something like this:

 

https://www.servicenow.com/community/next-experience-articles/how-to-use-ui-actions-in-workspaces/ta... 

 

The syntax is something different for GlideModal in agent workspace, please take a look at above link, you need to use g_modal.showFrame()

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.