Calling a script include from UI Action - Workspace Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2024 03:54 AM
Hi
I have a quite simple UI Action:
It is working perfectly fine, however I want this to be functoning in the Workspace as well. So I have copied the code to the "Workplace Client Script" but the script include is never called. I have logged it and it breaks at the line "ga.getXMLAnswer(function(response))
Does anyone have any idea on why, or possibly any knowledge about how to call the script include for the workspace in another way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2024 09:56 AM
Hi @PontusL ,
Please update your script include's 'Accessible from' field value from 'This application scope only' to 'All application scopes'.
If this solution helps you then, mark it as accepted solution ✔️ and give thumbs up 👍!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 11:09 AM
Hi @debendudas ,
It is set to "all application scopes", it is also working on the "normal" UI action script, just not on the workspace client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 02:30 AM
Hi @debendudas ,
Thank you for the reply. I have that set to 'All application scopes', it is also running in the back-end calling the script include from the "normal" UI Action, which is the same script. The issue is when I try to call it from the Workspace Client script, it will not access the script include.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 03:40 PM
Perhaps you can add 'isPublic' at the beginning of your script include. For example:
var GlideAjaxDR = Class.create();
GlideAjaxDR.prototype = Object.extendsObject(AbstractAjaxProcessor, {
isPublic:function(){return true; },
getUserInfo: function(){
or