Flow Designer: For Each action with List Collector and Approval

A_Nelson
Kilo Expert

Hello!

I am trying to get approval from the Product Owner of each software selected in a list collector. The list collector is link to the Software Model and the For Each action allows me to use the List but when I try to do a Look Up Record to try and get the Product owner, the data pill from the For Each action is greyed out.

Where have I gone wrong? I need to do this for 6 different list collector fields in the same manner but on different tables.

Any help would be greatly appreciated!

 

find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@anelson3 

refer my blog for converting the string into array of string

if that helps please mark it helpful and also bookmark it

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

13 REPLIES 13

Hi, 

@Ankur Bawiskar 

Thank you for the amazing post. It surely did help. However, I'm stuck with the same issue. It will not recognize the pill as an array. I set the output on action to Array.Object. That doesn't work either. I'm on San Diego release. 

find_real_file.png

The output is grayed out on the flow. 

find_real_file.png

What is it that I'm doing wrong? 

Thank you in advance. 

 

Hi, Poonam.

I removed the previous transforms (to_string, and split) in the code and left the outputs as array.object.

 

find_real_file.png

 

@anelson3 

I hope you must have marked the blog as helpful and also bookmarked it

Regards
Ankur

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

Hi @Ankur Bawiskar 

 

Still it is not working for me, i am unable to select the variable, see the screenshot

Kaps2_0-1697022442767.pngKaps2_1-1697022568767.pngKaps2_2-1697022604040.png