Not able to get a string array from the coded workflow

Hi,
I have seen example wherein simple data types/ tuple were returned from coded workflow. Is it not possible to return string array? I tried POC for it but do not get the value. PFA the files for the same.
Main.xaml (7.6 KB)
SampleWorkflow.cs (1.1 KB)

if you have an array, e.g. [“abc”, “def”]

you can use
String.join("," , arrayVariable) (might be dif
to convert it to a string i.e. "abc,def" and return it

then once you have this string use
stringVariable.split(","c)
to convert it back into an array

hi ,
I just did the same after posting the query, but it does not seem to work as well !
Not getting the value in the Main workflow :frowning:
Main.xaml (8.9 KB)
SampleWorkflow.cs (1.2 KB)

@loginerror Can you check too pls?

Check this post:

If you have just one output argument from coded workflow, you’ll need to refer to it as “Output” in the xaml workflow that invokes it.

1 Like

Thank you @efelantti , that indeed was the issue.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.