Not able to select Action For Each [User record] step in the flow designer from the [List Collector Field (from Action 2)]

Sravani36
Tera Expert

find_real_file.pngNot able to select user record from above action 2 it is showing readonly.find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

possibly you need to convert the string into array

check my blog for that

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

The Get Catalog Variables action returns a list collector as a comma separated string rather than an array. So we cannot use the 'For Each' action directly in your flow.

Resolution: So here is a workaround

  1. Create a custom flow action that takes list collector value string as the input
  2. Parse the string into an array
  3. Then output the array to be used in the For Each Loop.
  4. Then call this custom action in your flow and then use the output as per your needs

Regards
Ankur

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

View solution in original post

8 REPLIES 8

Hi Ankur,

we have created a catalog item (Software Maintenance Request) and for this form attached a flow (Create case based on Planned Maintenance).This particular flow will create a "case" once the request has been submitted and sends a notification to the customer. 

For sending notification we have attached template for that notification where the template consists of fields mapping to the particular catalog item variables, Along with it in template we also need to add the case number that has been created in the first Action. Can you please look into a below attached screenshots.

@Sravani 

Did I answer your original question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

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

Hi Ankur,

I have converted string to array from your blog but when I'm trying to pass the list collector values as the input still it's showing ReadOnly.

find_real_file.png

Hi,

Not sure why?

Did you try to logout and login again?

Regards
Ankur

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