"GlideStringUtil" AND "gs." is not defined in Flow Action

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 01:41 AM - edited 07-29-2024 03:53 AM
Hey everyone,
I recently updated the Application "Certificate Inventory and Management" and since then a custom Flow Action doesn't function properly anymore.
First it gave me the error "GlideStringUtil" is not defined. Because I thought it was a Scope problem I used a similar funciton with "gs". But now it gives me the error "gs is not defined"
Script Step
Required Runtime: MID
Function that used to work:
var content = GlideStringUtil.base64DecodeAsBytes(inputs.file_content);
Can somebody help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 03:52 AM
GlideStringUtil and gs are server-side objects and should work normally.
Is it possible that you are not running the script server-side and use the MID Server engine instead?
If though instead of "GlideStringUtil" you have to use "Packages.com.glide.util.StringUtil" (this is also used by a lot of other MID Server script includes).