Looping Through a List Collector to have Catalog Task created by the User Listed in FLOW Designer

Peter Williams
Kilo Sage

Good Day everyone,

i have this list collector in my Service Catalog that will ask users to enter in User names on it.

From this i would like to have my flow designer to collect these people and for each person create a catalog task and assign it to those people

 

so far i have this and is not working

 

PeterWilliams_0-1665581784307.png

 

i am getting the catalog variable from the form and then looking up the record on the user table

 

but in the for each item it only allows me to select the Get Catalog Variable and not the look up variable

 

When i test it, the For Each Item shows 0 records.

 

what can i do?

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron
Kilo Patron

Per SN, you'll need to "create a custom action that uses a string as the input, parse the string into an array, then outputs the array to be used in the For Loop. "

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0793340

 

Here's an example on how to do that

https://www.servicenow.com/community/developer-blog/using-list-collector-in-flow-designer-for-each-l...

View solution in original post

9 REPLIES 9

Mike_R
Kilo Patron
Kilo Patron

Per SN, you'll need to "create a custom action that uses a string as the input, parse the string into an array, then outputs the array to be used in the For Loop. "

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0793340

 

Here's an example on how to do that

https://www.servicenow.com/community/developer-blog/using-list-collector-in-flow-designer-for-each-l...

it doesnt seem to work

PeterWilliams_0-1665585966920.png

 

the variables doesnt appear to have been entered into the custom action i created

PeterWilliams_1-1665586014295.png

 

here is the custom action:

 

PeterWilliams_2-1665586079829.png

 

PeterWilliams_3-1665586112811.png

PeterWilliams_4-1665586212572.png

 

 

In the end this post helped alot and is now working

TYVM

Community Alums
Not applicable

@Peter Williams can you share what did you do, I have similar kind of requirement.

I read the link Mike_R did and followed their steps and got it to work