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

Community Alums
Not applicable

It still stops at the approval section. It waits for the outcome of the first approval before moving on to requesting the next approval. 

Yes. That is right. And you cannot change that behavior, because the 'ask for approval' action has a result data pill, which only holds a valid value, after the approval is evaluated. That cannot be changed. You could write the approval records as 'Create records' and then use them. Does that make sense? BR Dirk

@Mike Reading 

Is there a better solution for this use case now? I need to generate n number of approvals parallelly and I am stuck with the same issue.

Did you find any other way to resolve this issue?

 

Thank you

Amruta

@Alikutty A  - Did you get another way to generate number of approvals ?? If yes could you help me sharing the flow ?