- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2016 07:18 AM
Also what is the difference between
var StringUtil = new GlideStringUtil();
and this?
var StringUtil = GlideStringUtil ;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2016 04:35 AM
Well prasanna,
GlideStringUtil is a global variable, its not a class. See Download Attachments as a ZIP File - ServiceNow Guru
To use GlideStringUtil:
var StringUtil = GlideStringUtil;
var sa = new GlideSysAttachment();
var binData = sa.getBytes(current);
var encData =StringUtil.base64Encode(binData);
There are a lot of useful functions in GlideStringUtil. These are:
--
Cheers,
AR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 08:57 PM
May I know from where did you get this list? the official API document doesn't include all the functions you listed here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2020 06:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2022 04:01 AM
Hi Shruti,
sadly in the "offical" product documentation for the GlideStringUtil from Developer- site only a few functions are described, so you cannot find the complete documentation there (e.g. in the out-of-the-box script the GlideStringUtil.notNil is used, but you cannot find any documentation on SNow site - of course it is clear what this function is doing).
So the question is, where are the other docs for available functions they are not documented?
