Is it possible for flow designer to dynamically generate multiple tasks in parallel?

Community Alums
Not applicable

Hi all, 

Does anyone know if it's possible to (and if it is, how) to get Flow Designer to dynamically generate tasks in parallel?

Here's the logical flow that I'm trying to achieve: 

  1. Lookup a bunch of records where sys_id is one of <big list> (the big list is dynamically generated in a previous step)
  2. For each of these, create a SCTASK, attach it to the RITM the flow is running on and attach an approval (that will be specific to the sys_id that the for each is running on)

The only way I've been able to make that work in flow designer so far is all the tasks are created sequentially, here's what I've done so far: 

find_real_file.png

Thanks all in advance

Mike

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Ok, the only way I figured out how to do this was to move some of it back to a workflow: 

 

So, effectively I use a For Each Item in Flow, call a workflow that generates approvals for the task I've just created (using WorkFlow Inputs to pass the SysID) and not "waiting" for each workflow to complete. I've then got a 5 minute wait (to let the tasks generate effectively) and we continue the flow from there. 

 

It's not clean, but it works. 

find_real_file.png

View solution in original post

12 REPLIES 12

For approvals, there is a limitation today with parallel execution. It is not supported with flow designer, but there is a workaround available to create a temporary task and add the approval on the task instead of RITM or the record

@Alikutty A How do you actually go about creating these "temporary tasks"? I keep seeing this workaround but it is never explained in detail how to achieve it. Any help would be appreciated.

@Smashley Try setting the Approval field to empty on Ask for Approval and see if it works for you. Also have a look at my blog that explains it - Parallel Approvals in Flow Designer - ServiceNow Community