Flow subflow - trying to test an input type of Array.String

GoBucks
Mega Sage

I have created a simple subflow with an input type of array.string:

find_real_file.png

Is this type not an array of strings?  Perhaps I'm misunderstanding it or forgetting something obvious. I then have a For each logic action so I can loop through this array of strings:

find_real_file.png

And within the loop I'm simply attempting to print to the log:

find_real_file.png

When I go to test I enter a test value for just one array element:

find_real_file.png

When I look at the runtime value it appears to be null as if I never provided a value for this array element.

find_real_file.png

How can I test the input type of Array.String?

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@GoBucks 

Seems you need to refer this blog for help

Using list collector in Flow Designer 'For Each loop' by converting string into array of string

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

8 REPLIES 8

surajp
Mega Guru
It might be due to cache issue with Test button. Try testing it after closing & reopening the flow.

Ankur Bawiskar
Tera Patron
Tera Patron

@GoBucks 

Seems you need to refer this blog for help

Using list collector in Flow Designer 'For Each loop' by converting string into array of string

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar thank you!

@GoBucks 

Welcome.

Please remember to mark blog as helpful and also bookmark if that helped.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader