Do until in the new Power Automate Designer

The new Power Automate designer is getting a lot of negative attention. There are however a quite a few improvements in new Power Automate Designer. The Do Until step is one of those improvements in the new UI.

Do Until

In the classic UI, I’ve seen many used the Do Until often in combination with variables as shown below where we run some actions inside a Do Until before a variable is set before the Do Until step will check the value of the variable.

Do until in the new Power Automate Designer
Do until in the new Power Automate Designer 1

In the classic UI you might think that the Do until condition would be checked before the first iteration of the Do Until. But this does not happen. A Do Until will always run once before it checks the condition.

Do Until in the classic UI without variables

First of all, this is not a matter of using variables or not. Whereas in Apply to each steps variables disable concurrency in Do until loops there is no concurrency setting, hence it doesn’t matter if you use variables or not. Other than less is often better.

When we run some more tests you will find that the variable steps are actually not needed at all. As the condition can check values from steps returned by steps inside the Do Until.

Do Until in the classic UI without variables
Do Until in the classic UI without variables

Now it is time to have a look at the modern Power Automate Designer UI.

Do Until in the modern Power Automate designer

Now, when we look at the new UI, we will see that the condition follows the logic in the Do Until. This mean that you would expect the code to run once before the Do Until checks if a condition is met.

Do until in the modern UI
Do until in the modern UI

This is one of those many UI changes that actually makes sense. Have you found any real positive changes in the new UI, then leave a comment below.


Discover more from SharePains

Subscribe to get the latest posts sent to your email.

Related Posts

2 thoughts on “Do until in the new Power Automate Designer

  1. In this post, you wrote “There are however a quite a few improvements in new SharePoint Designer.” Did you mean “Power Automate Designer”? If not, I’ve a bit confused.

Leave a Reply

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

Discover more from SharePains

Subscribe now to keep reading and get access to the full archive.

Continue reading