The CreatorCon Call for Content is officially open! Get started here.

Flow Designer - Do the following until loop in Sub Flow is not ending

PavelP
Mega Sage

Hello,

I encountered an issue with Flow, I managed to get a functionality working within the loop, but when the record is closed - and the condition in the "Do following until" loop should be fulfilled - the sub-flow still sits in the "Waiting" state.

PavelP_0-1721980113425.png

 

Im not sure how to troubleshoot this since the configuration is being set as expected. The only specific is its ran in subflow, but the record in the input is working with other conditions just fine.

Any suggestions?
Thanks

Pavel

1 ACCEPTED SOLUTION

Thanks,

I ended up using something similar - put in a Parallel line with a "Wait for" condition, that also checked the states in case the case is closed - ending the flow if fulfilled.

PavelP_0-1722262860943.png

Thanks a lot for all your support 🙂

 

View solution in original post

11 REPLIES 11

Voona Rohila
Mega Patron
Mega Patron

Hi @PavelP 

Please check below highlighted 'Wait for condition' Logic, The sub-flow is waiting at action 3.

VoonaRohila_0-1721987298802.png

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Indeed!

@PavelP can you share details about step 3, Wait for Condition?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

PavelP
Mega Sage

Hi,

the step 3 "Wait for Condition" is waiting for a state change in the Record.

However, as I understood it, the "Do the following until" condition would take precedent - i.e. when the condition is set to close when the Record is cancelled, it wouldn't wait for the Steps inside the loop - similar what I found in the documentation - https://docs.servicenow.com/bundle/washingtondc-build-workflows/page/administer/flow-designer/concep...

 

In a different record, I ran all condition inside the loop, and the "Do until" loop was still stuck at waiting.

PavelP_0-1721988640762.png

Is there anything I'm missing?

 

Hi @PavelP ,

 

I can see this subflow is executed for 3 times. In the very first step "Do the following 1 of 3", if you hover your cursor on "1" you will be able to see the up and down navigations. Go the third execution and check whether it stuck in the third execution.

 

Regards,

Dhanraj.