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.

GlideAjax is not executing Script Include method across scope

AlwinJebakY
Tera Expert

I'm facing an issue while calling a Script Include from a Client Script using Glide Ajax. 

My Client Script is in the Global Scope 
The Script Include is in the Customer Service Scope
      Accessible from is already set to All Application Scope
      Script Include is marked Client Callable = true 

The GlideAjax request is visible, Script Include is getting triggered
But the function inside the Script Include is not executing

I have already verified the following
       Script Include is marked Client Callable = true 
       Script Include is accessible from all application scopes
       In Client Script Correct Script Include name and function name are used
       No Console errors
       GlideAjax call is firing correctly 

Still the Script Include does not executed.

Is there anything else required to call a Script Include from Global Scope When it is created under Customer Service  Scope ? 




2 REPLIES 2

lpruit2
Kilo Sage

Greetings @AlwinJebakY. Would you be able to share your code here? 

rajshinde999910
Tera Contributor

Hello @AlwinJebakY ,

 

Please share the code so I can review it.


Apart from that, you can also try this:

The issue is that the function you are calling is not inside the Script Include’s prototype. GlideAjax only executes functions that are defined inside the prototype block.

 

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and "Helpful."
This action supports both the community and me.

 

Regards
Raj Shinde