: com.glide.script.fencing.MethodNotAllowedException: Function setUseEngines is not a allowed in scope xx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2020 03:33 PM
Hello expert,
we are receiving the below Errors seems setUseEngines is not accessible in scope xx
Evaluator.evaluateString() problem: com.glide.script.fencing.MethodNotAllowedException: Function setUseEngines is not allowed in scope xx
Is there any replacement for this or any suggestions?
Thanks in advance!
Meenal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2020 03:42 PM
Hi,
In scoped Application you need to use GlideScopedEvaluator().
Thanks & Regards,
Sharjeel
Muhammad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2020 03:57 PM
Hi Meenal,
Could you please give a try by cresting a script include in global scope and try to invoke the script as mentioned in the below HI link.
https://hi.service-now.com/kb_view.do?sysparm_article=KB0820691
Regards,
Alok

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2020 05:50 PM
Some globally scoped methods are not allowed in application scopes for security reasons.
Can you explain what you are trying to achieve so we can suggest an alternative API?
Creating a Global script include that becomes a dependency on your scoped application as suggested by
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2020 10:18 PM
Hi paul,
Thanks for the reply.
setUseEngines function used to ignore data policy updates.
Can you suggest some other API for this?
Thanks and Regards,
Meenal