GlideScriptableInputStream in Global Scope

Tuna
Giga Guru

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

2 REPLIES 2

Ct111
Giga Sage

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

 

 

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