Flow Designer Foreach loop on Service Catalog List Collector variable type not identified as record (sometimes)

Anders Pr_steg1
Tera Contributor

Hi

I have a Flow Designer Flow that uses the Service Catalog plugin and in that gets Catalog variables one of which is of type List Collector and contains sys_user records. When - in a Flow Designer ForEach Loop - trying to reference the email attribute on each sys_user record iteration, I cannot expand it, and it's titled "Item" while being greyed out as well. At some point during my fiddling around the record was suddenly recognized as a user object though that did revert after a Test run that failed at the specific step where I expand the ForEach user object reference. 

Can anyone share any insight on the matter?

Thanks,

Anders

1 ACCEPTED SOLUTION

No problem, I'm still a newbie so if this doesn't work, apologies!

So my example is, I have a Service Request that captures multiple accounts within the list collector. We then use this to generate flows and processes for each value in the list collector, so need to be able to select values from the accounts table.

Mine goes (screenshot attached too):

Trigger - Service Catalog

Action 1 - Get Catalog Variables from [Request Item] (pulls in List Collector field)

Action 2 - Look Up [Account] Records where Sys ID = [List Collector Field (from Action 1)] 

Action 3 - For Each [Account Record] (from Action 2)

For me, this kept the 'For Each' record as the Account Record, that I could expand and take the data pills from when needed.

View solution in original post

16 REPLIES 16

Glad it worked!

Realised I didn't state that in the message, but yes, 'is one of' is where I got stuck!

Happy flowing! 🙂

Happy flowing to you too Natalie 🙂

-Anders

Action 2 should have to be modified to Sys ID 'is one of' [List Collector Field (from Action 1)].

Phani19
Tera Contributor

Hi Natalie,

 

Thanks for the screenshot. It worked very well. 

Thanks. Was searching for same solution