Parse Values from Array.String FD object

Sam121
Tera Expert

Hello Experts, 

 

I have a custom Flow Designer action which returns output in Array.String data type. This FD action is in a custom scope.

I am looking for a script to iterate through these array.string values in a client callable script include.

I tried all JSON methods ( parse(), stringify) . But, I am not able to iterate through these array.string values.

Code Snippet generated by FD action works fine in background script. But, same code doesn't work in client callable script include.

 

Following is the sample output returned from this custom FD action.

 

{
    "Folder List": [
        "23476",
        "09729"
    ]
}

 

I am looking for a script to iterate through above array string object and print values.

 

Regards,

Sam 

1 ACCEPTED SOLUTION

Sam121
Tera Expert

I resolved it myself.

All I was missing was a global object before calling OOB JSON API methods.

 

 

View solution in original post

5 REPLIES 5

JenniferRah
Mega Sage

I guess I'm confused as to why you would be sending output from a Flow Designer Action to something that requires a client-callable script include?

because, i want to parse output of a script include in a client script.

Asking for code for a client-callable script include is different than asking for code that runs in a client script. For us to be able to help, we are going to need to understand the ask.

i am not asking for a help on client script. I have already provided the problem statement.