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.

Cross scope Glide Ajax calls

prasanna11
Giga Guru

How to call a script include of global scope from a client script of scoped app. 

  • I have checked that script include is in fact accessible by all scopes.
  • Its Client Callable as well.
  • In the below script i also tried global.space_mgmt instead of directly calling it
var ga = new GlideAjax('space_mgmt') ;
ga.addParam('sysparm_name','seat_existing');
ga.addParam('sysparm_crnt_seat',g_form.getUniqueValue());
ga.getXMLWait(); 
alert(ga.getAnswer());
1 REPLY 1

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Prasanna,

 

getXMLWait is not supported at client side in Scoped Applications. Please refer below blog for more info.

https://community.servicenow.com/community?id=community_blog&sys_id=788c66e1dbd0dbc01dcaf3231f961969

 

Thanks,

Pradeep Sharma