Using list collector in Flow Designer , need to create multiple catalog tasks with one Request

VALLUB
Tera Contributor

Hi Community,

 

I have one List collector field, so if users selects multiple options then it creates multiple tasks with one Request.

For Example- User selects list collector choices as  TypeA, TypeB and TypeC then it should creates 3 multiple tasks.

Please let me know how to achieve this. Thanks in Advacnce.

 

 

6 REPLIES 6

Josh Pirozzi
Kilo Sage

Hey @VALLUB,

 

I wrote up some steps on how we built the solution for our orgnization. It references the Business Application CI Table and then iterates through the necessary Steps with a For Each Flow Step.

 

https://www.servicenow.com/community/developer-forum/flow-designer-amp-list-collector-quot-for-each-...

Josh Pirozzi
Kilo Sage

Hey @VALLUB,

 

In your Flow you'll want to:

  • Query the Table (Look up Records) that your List Collector is referencing to look up all active records there.
  • Set up your 'For Each' Step where you reference the Look Up Records Step.
    • Add a Function to Split with a Comma
  • Add a Look Up Record Step that looks up the individual Record in your For Each Step. 

From here you can trigger Tasks as necessary. I'd recommend adding in the condition for each Look Up Record Step that the SysID matches the selected Records SysID. 

 

I've documented this out here: https://www.servicenow.com/community/developer-forum/flow-designer-amp-list-collector-quot-for-each-...