- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 10:24 PM
In Flow Designer, I have a logic to implement and Im looking for the right way to implement
In HR Case, there is a list collector field refers to user table
in the flow, I create a task for each user in the field. For example, there 3 users selected in the field, then 3 tasks are created and each user will have one
Now next spet, I want to wait for these 3 tasks to be closed completed. How to implement this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 10:52 PM
those 3 tasks are not dependent on each other
So you can have another parallel activity and use Wait for Condition to wait on all tasks and then proceed ahead
check this
Flow Designer: Generate multiple "sc_task" simultaneously using "For Each" Flow Logic
Flow Designer wait for multiple tasks to complete - Service Catalog
you can also create a subflow and handle this as per below link
Flow - How to properly wait for ALL sc_task records to be completed?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 10:52 PM
those 3 tasks are not dependent on each other
So you can have another parallel activity and use Wait for Condition to wait on all tasks and then proceed ahead
check this
Flow Designer: Generate multiple "sc_task" simultaneously using "For Each" Flow Logic
Flow Designer wait for multiple tasks to complete - Service Catalog
you can also create a subflow and handle this as per below link
Flow - How to properly wait for ALL sc_task records to be completed?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2025 01:55 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 11:54 PM
Hi @Sruthi17
This seems bit difficult scenario as number of task creation is dynamic. I can provide an approach to handle such scenario.
- Create global variable e.g. Number of Users ( you can plan to store their sys_id in array as well )
- Create Custom action to set Number of Users count and store their sys_id's which can further be used while creating tasks.
- Use loop to generate all tasks based on number of users count.
- Once you are able to do this follow steps provided in Flow Designer: Generate multiple "sc_task" simultaneously using "For Each" Flow Logic.
- Logic provided in related link will help you to wait until all tasks are closed.
Regards,
Abhijit
ServiceNow MVP