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

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

Hi Ankur,

Can you please help me on below requirement

When a case is created using the flow designer, where the flow is attached to the catalog item once we submit catalog request the case is created and send the notification. For this notification we have attached a below template where one of the field (Incident case ID)value is the case number how to map that case number which has been created through that particular catalog item.

find_real_file.pngfind_real_file.png

Hi,

how and from where is case getting created created?

Regards
Ankur

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

@Sravani 

Thank you for marking my response as helpful.

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