Implement an infinite loop (repeated processing)
Power Automate Desktop provides a wide range of actions for getting data from web pages and on-premises software.
However, the free version doesn’t support scheduled runs (scheduled runs require a paid license such as Power Automate Premium). Because of this, many people keep a flow running continuously without ending it, for example to monitor for a specific event.
This article explains how to implement an infinite loop.
Loop with a step of 0
Section titled “Loop with a step of 0”This is an example of an infinite loop that uses the “Loop” action.
Implement by copying and pasting
Section titled “Implement by copying and pasting”Copy the following code and paste it into the Power Automate Desktop flow designer to add the actions.
LOOP FROM 0 TO 1 STEP 0ENDImplement in Power Automate Desktop
Section titled “Implement in Power Automate Desktop”-
In “Search actions,” type “Loop.”
-
Set the parameters to the following values.
LoopIterates a block of actions for a specified number of timesSelect parameters- Start from
- 0
- End to
- 1
- Increment by
- 0
Infinite loop with a condition
Section titled “Infinite loop with a condition”This is an example of an infinite loop that uses the “Loop condition” action.
Implement by copying and pasting
Section titled “Implement by copying and pasting”Copy the following code and paste it into the Power Automate Desktop flow designer to add the actions.
LOOP WHILE (True) = (True)ENDImplement in Power Automate Desktop
Section titled “Implement in Power Automate Desktop”-
In “Search actions,” type “Loop condition.”
-
Set the parameters to the following values.
Loop conditionIterates a block of actions as long as a specified condition proves to be trueSelect parameters- First operand
- %True%
- Operator
- Equal to (=)
- Second operand
- %True%