- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2017 06:15 AM
Is there a method to decode base42 via script. I don't see any functionality that would allow me to decode a base64 string?
I can write code and create a script include that would do the decoding but before I do that would like to see if that functionality isn't already supplied natively in the product.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2017 09:52 AM
Great - thanks. We are planning on going to Istanbul next week anyway. That will work for us.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2017 09:37 AM
There is a "utility" GlideStringUtil that can be used in the global scope.
You can encode and decode:
var strEncodedString = GlideStringUtil.base64Encode('my_string');
GlideStringUtil.base64Decode(strEncodedString);
If you are in a scoped application, the GlideSystem object has methods:
gs.base64Decode()
gs.base64Encode()
The GlideSystem methods are available starting with Istanbul

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2019 04:36 AM
OP should have marked your answer as correct instead of his own reply stating that you had the answer... ::slaps forehead::.... anyway,
Within your answer "GlideStringUtil.base64Decode(strEncodedString);" is the magic ingredient I was missing so I could do this:
So, THANK YOU for this answer!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2017 09:52 AM
Great - thanks. We are planning on going to Istanbul next week anyway. That will work for us.
Thanks again.