Flow Designer to loop and add approver help needed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 09:51 AM
I have a Flow I'm working on that is for a catalog item. It's working but in a unexpected way.
I have a Catalog Item that has a list collector on it that I am doing a lookup on and then doing a for each loop to get the approvers for each item in the list collector.
What I'm wanting to do is have all of the SCTASK (the number depends on the loop) created and then add the approver to that SCTASK.
What it's currently doing is creating the SCTASK and waiting for the approver to approve, then it will create the next SCTASK and waits for that to be approved. These are independent SCTASK and not related to each other but need to be on the RITM. I've included a picture of the flow.
Any suggestions on how to create all of the tasks first then add the approvers to those?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 12:17 PM
You could put those actions in a Subflow then call that in your loop instead. That way the flow will not wait on the approval to be complete before continuing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 08:48 AM
Well, I tried your suggestion about putting that into a subflow. It's still waiting on the first sc_task to be approved before it will continue in the loop.
I have got the flow to create all of the SCTASK records without approvals on them, which is a step in the right direction. However when I go back and try to add approval for them it will wait for the approval of the first one before requesting approval on the second one.
Any ideas on how to get the Ask for Approval to update on multiple records at the same time outside of a loop?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 12:23 PM
When you create a task there's a checkbox called "Wait". If you don't check that, it won't wait for the task to finish.
After the loop, if you want to wait for all the approval tasks to finish, you can have a business rules that runs on those tasks and then closes the RITM or sets a flag of some sort. Then add a Wait for Condition action into your flow to wait for that flag to be a certain value.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 11:17 AM
Came here to say this.😀