Issues with a Custom Script Action on Flow Designer

Phoenix_SN
Giga Contributor

Hi,

I have a Custom Script Action on Flow Designer that calls a Script Include & returns the list of Approvers. The Script Output is of type String & the Output is also of type String. The data returned is accurate ["e8615e3edba60c1026aef0152c961931"] but is appended with [""] which I am unable to use as a sys_id for adding Approvers in the flow. 

 

I have tried to remove [""] by adding a Flow Variable that is scripted to remove these [""] but that returns blank. Also I have tried to change the Custom Script Action to Array.Object which didn't help. Any ideas. Thanks

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, I have seen similar issues in flow where the result of some script is returned similarly, and it kinda looks like an object representation of the value returned by your code, but without a key so it can't be parsed out cleanly.
Can you stringify the returned result and then use replace() to remove the unwanted chars?

James Chun
Kilo Patron

Hi @Phoenix_SN,

 

Can you share how you configured the custom script action and the script include?

It appears that you are not converting the array into a string correctly.

 

Cheers