synchronous glideajax call for scoped application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2023 01:29 AM
Please make suggestions for getXMLwait() alternatives for bespoke applications. GetXMLwait cannot be used for scoped applications, according to the documentation.
I'm working on a need where, when the Status field changes, a GlideAjax call will be made. When the call returns, the response value will be provided to the GlideModal window.
To make the glideajax call synchronous, I need advice.
Thank you,
Pratap

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2023 01:46 AM
Hi,
var ga = new GlideAjax('MyScriptInclude');
ga.addParam('sysparm_name', 'myFunction');
ga.addParam('param1', 'value1');
ga.getXML(function(response) {
var answer = response.responseXML.documentElement.getAttribute("answer");
// Do something with the response value
}, true);
Thanks,
Rahul Kumar
Thanks,
Rahul Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2023 01:50 AM
getXMLWait() is not supported in scoped app
refer this link for alternative for getXMLWait() in scoped app
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2023 04:15 AM
@Chuck Tomasi Could you please suggest a solution here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2023 08:32 PM
Did you get a chance to check my above links?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader