- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hello,
I have created a UI Action called "Resolve Infraction" that is being used in Workspace. The UI Action has the condition of: new x_mtbr_ebs_sip_0.EBSSIPUtils().canViewResolveInfraction(), which is just identifying when the user can see the UI Action which is working just fine.
Then I have the client script below that pops up a modal and calls the script include after this to get and passes the sys_id of the record, the comments and state over to the script include.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Friday
I was able to resolve it by eliminating the AJAX script and just updating the record within the client script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
since you are in scoped app, ensure the Script Include is Accessible From All application scopes
I faced this issue recently and the workspace client script was able to call the script include Ajax only with above settings.
It's strange but it worked
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Thanks Tera, I do have it set that way, but I appreciate the feedback.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
please share screenshots of your UI action, script include etc
try to use getXMLAnswer() in your GlideAjax
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Minor observation, the 'state' variable in the script include is undefined. Declared but no value is assigned.
