gs.getSession().getClientData() is not accessible from Catalog Task activity of Workflow

BalaK5
Tera Contributor

I have written a code of gs.getSession().putClientData() in a script include and updated the parameters with proper values which I actually need in Catalog Task activity Advanced script of a Standard Workflow to create a SC Task for a catalog item but Receiving "null" as value all the time.

 

Any help on this is very much appreciated.

 

Thank you

1 REPLY 1

Ahmmed Ali
Mega Sage

Hello @BalaK5 

 

I do not think it is good way to use getClientData() in workflow as sessions with which workflow runs keeps changing dynamically. Means imagine you have set some client data to current session at the initial stage of the workflow run script, then if there is any approval triggered and any user approves it, the workflow is now run with that user reference.

 

I think similar issue is happening in your case as well.

 

Thanks,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali