The CreatorCon Call for Content is officially open! Get started here.

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

Simon Ohle
Kilo Guru

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?

1 REPLY 1

Sebastian R_
Kilo Sage

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).