g_scratchpad not available for List Action Client Script in CSM Workspace?

Paul Johansson
Tera Contributor

Hello,

 

I'm trying to use g_scratchpad in a client script for a List Action but I get: SCRIPT:EXEC Error while running Client Script "GlideScopedScript": ReferenceError: g_scratchpad is not defined

 

The Display BR is working when it saves to the scratchpad.

 

When you create a List Action (Action Assignment) and select "Implemented as: Client Script" is it not a "true" Client Script? g_scratchpad should be available for client scripts.

 

I need to be able to fetch the Sys ID of a Case in this client script in Workspace. I know there is a way using UXF Client Action and events but I'm hoping I don't have to go that route.

 

Thanks

1 REPLY 1

Paul Johansson
Tera Contributor

Another thing that is not working is like action.setReturnURL or action.setRedirectURL as there is a ReferenceError: action is not defined