GlideStringUtil in Scoped Application
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2019 10:15 AM
Hi I'm running into an issue using GlideStringUtil. I'm getting this error
Server JavaScript error Cannot find function base64DecodeAsBytes in object function GlideStringUtil() {
[native code, arity=0]
it works when I run it in a widget in public, but then when I run it in a scoped application it's not working.
I tried using global.GlideStringUtil but it still doesn't work.
var decodedBytes = GlideStringUtil.base64DecodeAsBytes(input.dataUrl);
this is what I'm using for reference. Anyone have experience with using GlideStringUtil in a scoped app?
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2019 11:41 AM
Hi
Scoped Applications have some limits on scripts and the API avaliable.
Looks as if you now caught one of those cases. It is a good way to read the API docs on the developer homepage carefully. It is mentioned, if the function you need will be available or not.
Often, you can find alternatives there.
Let me know if that answered your question and mark my answer as correct and helpful, please.
BR
Dirk