GlideRecord#getValue not allowed in scoped application script-include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2020 12:07 PM
I have one scoped application where I have written some code in a script-include like below:
var gr = new GlideRecord('my_table');
gr.getValue('some_column');
I'm getting error like: JavaException: com.glide.script.fencing.MethodNotAllowedException: Function getValue is not allowed in scope xxxxxxx
What could be the workaround can anyone please help. Also, can anyone tell me WHY getValue isn't allowed in scoped application although it is mentioned in the scoped application doc(https://developer.servicenow.com/app.do#!/api_doc?v=newyork&id=r_ScopedGlideRecordGetValue_String)
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2020 12:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2020 09:17 PM
It has "This application scope only"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2020 07:11 AM
Make it All application scopes.
Please mark my response as correct and helpful if it helped solved your question.
-Thanks