GlideScriptableInputStream in Global Scope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2018 07:00 AM
Hello Community,
I've written a Script Include to work with the ecc_queue. So far so good.
While testing I came across the problem that for large JDBC results not the payload field is used instead the results get attached as a file to the input record. So I thought ok, no problem I'll extract the records from that file using GlideScriptableInputStream. The problem is, that it is only working when I use it in a Scoped Application. But my Script Include is actually written in a way that everyone can use it.
This problem would mean I have to create another Script Include which is scoped just for extracting the results from a file that is attached to the ecc_queue input record. This actually is not the idea of the Script Include. And if I put my Script Include in a Scoped Application that would mean I have to grant access to it from global scope which is also not the actual idea of Scoped Applications.
[TL;DR] Is there any pendant to GlideScriptableInputStream which is working in global scope as well?
Best Regards
- Labels:
-
Scoped App Development
-
Studio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2018 08:29 AM
Hi,
Check if you find this information related to ur query
https://developer.servicenow.com/app.do#!/api_doc?v=jakarta&id=c_GlideScriptableInpStrmScopedAPI
https://developer.servicenow.com/app.do#!/api_doc?v=kingston&id=r_SGDigest-GlideDigest
Mark my ANSWERR as CORRECT and HELPFUL if it helped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2018 01:27 AM
Hi,
I think you didn't get my point.
Searching in the API reference, I can do on my own.
Have you registered that GlideScriptableInputStream is only working in scoped applications and that I am looking for a solution that works in global scope as well?
BR