Flow Designer not working as expected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2024 01:21 PM
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.
Thanks,
Rocky.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2024 01:27 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2024 01:32 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2024 01:53 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2024 12:40 PM - edited ‎03-24-2024 12:40 PM
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.
Any thoughts?
Thanks,
Rocky.