Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

do until

Hi everybody,


I am trying to set up a flow with a "do-until" loop.

The flow starts with a HTTPS-Get request, which gets replied.

I want do repeat the Request till "orderstate" in the body becomes "201"


    "objectname""NFH 1",
    "destination""Wien, Gasse 11",
    "orderstate_time""14.03.2018 08:37",
    "orderstate_postext""Wien, AT",
    "orderstate_msgtext""Auftrag : erledigt",
    "street""Gasse 11",


How do I have to put it in the "Do until" Loop.

At the moment I have @equals(body('HTTP')['orderstate'], 201) - which doesn´t work


Thx for your help


Re: do until

Why Don't you initilize a variable and then inside your loop set the varibale to the order state. Then in you do until condition you just need to add the condition depending on the variable.

Frequent Visitor

Re: do until

What would that variable look like?


Re: do until

Please add an action called initialize variable near the top of your flow


then use a Set Variable  action to set the variable to the bit of data that you want using the Dynamic content

Frequent Visitor

Re: do until

I followed your advice an got a variable with the data i wanted:



The "do-until is:
@equals(variables('OST'), 201)
But it still doesn´t work...
Community Support
Community Support

Re: do until

Hi @Matt_Vie,


Could you please share a screenshot of your flow's configuration?

Could you please show more details about the error message?


I have made a test on my side and don't have the issue that you mentioned. My flow's configuration as below:7.JPG

Within "Do Until" action, click "Edit in advanced mode", type the following formula:

@equals(body('HTTP')?['orderstate'], 201)

Click "Change limits", Count property set to empty (default value of it is 60).


The flow works successfully as below:8.JPG



When the value of "orderstate" key changes into 201, the flow works well as below:9.JPG




If you could provide more details about your scenario, we would provide a proper workaround for you.


Best regards,




Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

Re: do until

Hey Kris,

I created a new Flow following your instructions and get this error message:


InvalidTemplate. Vorlagensprachausdrücke für Aktion "Wiederholen_bis" in Zeile "1" und Spalte "878" können nicht verarbeitet werden: Der Vorlagensprachausdruck "equals(body('HTTP')?['orderstate'], 201)" kann nicht ausgewertet werden, weil die Eigenschaft "orderstate" nicht ausgewählt werden kann. Arrayelemente können nur mit einem Ganzzahlindex ausgewählt werden. Weitere Informationen zur Verwendung finden Sie unter
The Flow looks like this:


Sorry, but I can´t attach pictures in this post and don´t know why...

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,938)