Flow Designer not working as expected

Rocky5
Kilo Sage

Hello Experts,


We want to run a job everyday so, trying it via flow designer. where flow checks for all KB Articles that so so 'Business Valid to' date and for all the KB Articles found in lookup we should create 1 record and 2 tasks. So, I am using the below flow with 'For each item' in it so that for each KB article it creates 1 record and 2 tasks. 

But, the issue is.. lets say there are 5 KB articles found, this flow is not creating that 1 record and 2 tasks for all 5 KB articles at once instead it does one after one. But, for our use case we want that 1 record and 2 tasks be created for all 5 KB articles at once.. how can I do that? looks like 'For each item' isn't the right approach here.

Rocky5_0-1711138608395.png

 

Thanks,

Rocky.

 

9 REPLIES 9

SanjivMeher
Kilo Patron
Kilo Patron

It wont. Because you have wait for condition in the loop. Instead I would suggest creating a subflow for creating tasks which may work and loop through each items.


Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv,

 

But, the wait for condition is waiting for an update from Task1. so, even if I create sub flow for task creation and then put wait for condition below the sub flow.. it would still work the same right?

 

Thanks,

Rocky.

I think if you put it in a subflow, it should run independently and flow should run it in loop.


Please mark this response as correct or helpful if it assisted you with your question.

Hi @SanjivMeher ,

 

I have created a subflow for creating 1 record and 2 tasks and put it in the loop. And I had wait for conditions next to the subflow action in the Flow (screenshot below) but it still waits for the first record to complete the flow before it proceeds to next record. 

 

I tried to put 'wait for condition' out side the for loop but I couldn't apply conditions to check if the task created in subflow is updated or not.

 

Basically, the 'wait for condition' actions in my flow are wait to have the state field updated on the 2 tasks that were created in the subflow.

 

Rocky5_1-1711309250616.png

 

 

Any thoughts?

 

Thanks,

Rocky.