Flow Designer Logic

Sruthi17
Kilo Sage

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

Sruthi17_0-1746595422011.png

Now next spet, I want to wait for these 3 tasks to be closed completed. How to implement this?

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Sruthi17 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Sruthi17 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Sruthi17 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Abhijit4
Mega Sage

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.

 

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP