glide Ajax is not wokring in the Workspace client script in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 05:38 AM
Hi All ,
I am creating one Ui action in the workspace . Ui action is working fine in the native view but in the Workspace its not working .
Note : Alert is coming with the sys id the record in the workspace and after that its going inside the script include which we are using in the workspace . Same Script include is used in native view and its working fine.
Please find the code : Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2025 03:26 AM - edited 10-14-2025 03:27 AM
Hey all,
I had similar problem, in the scoped application for an UI action button, the GlideAjax call was working well from the Fulfiller view, but not from the Workspace.
In console, I saw the 404 error message for the xmlhttp.do POST request. So I had to dig deeper and this combination of following things helped me (considering that both client & server script are written well, sysparm_name and other parameters are matching, client callable checkbox is checked and so on...):
- Make sure that Script Include is accessible from All application scopes (because AbstractAjaxProcessor is in global scope)
- Paste this method into your script include:
isPublic: function() { return true; },
- When initializing GlideAjax object, use the full API name:
var ga = new GlideAjax("<scope>.<script include name>")
Implemented on MS Edge browser in network-restricted domain.
