Do Until Example

Do Until in Microsoft Flow

Whether you use Dynamics 365 or SharePoint Online, in Microsoft Flow there are quite a lot of controls that help you build your business processes.  One of those controls is the Flow Do Until control. As the name already says this control will do something until a certain condition is true.

Basic Do Until loops

In this post I will look at how this control works.

Flow Do Until example

While loops vs Do Until

For this post I will use the above example. When you run this flow the Do Until will go through all of its 60 runs. The 60 runs is the default value of the Do Until if the condition hasn’t been met.

Do Until run in Flow

This example shows that the Do until will first run the actions inside before considering the condition. This means that before running a do until you might want to run a condition if you want to implement a ‘While loop‘ step where the condition is checked first before running any actions inside the loop.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: