Loops Action in Desktop flow using Microsoft Power Automate

Microsoft Power Automate, is a software by Microsoft for automation of recurring tasks. It is part of the Microsoft Power Platform line of products together with products such as Power Apps and Power BI. More Details https://powerautomate.microsoft.com/en-us/

Desktop flows are the existing robotic process automation (RPA) capabilities in Power Automate and enable to automate all repetitive desktop processes. More Details https://docs.microsoft.com/en-us/power-automate/desktop-flows/introduction

Loops are used to automate repetitive sections of a flow by executing a block of actions multiple times.

Reading this article, you can learn how to use Loops Action in Desktop flow using Microsoft Power Automate.

The following important tools are required for developing Microsoft Power Automate,

  1. Windows 10/11 (Recommended)
  2. Power Automate Desktop - Download the Power Automate installer

Now we can discuss step by step App development.

Step 1

Open Microsoft Power Automate ->  New Flow

Loops Action in Desktop flow

Next, give the Flow name as PADLoops. Click the Create button.

Loops Action in Desktop flow

After that, we are able to see the Desktop flow,

Loops Action in Desktop flow

Step 2

For testing Loops action,

First, add the Create new list action,

Loops Action in Desktop flow

Set the Variables produced parameter as %LoopList% in Create new list action and click Save,

Loops Action in Desktop flow

Next, add the Loops action,

Loops Action in Desktop flow

Set the Start from parameter as 1, End to parameter as 100 and Incremented by 1 in Loop action and click Save,

Loops Action in Desktop flow

Next, Add the Add item to list action,

Loops Action in Desktop flow

Set the Add item parameter as welcome to C# Corner, Into list parameter as %LoopList% in Add item to list action and click Save,

Loops Action in Desktop flow

For displaying result, add the Display message action,

Loops Action in Desktop flow

Set the Message box Title parameter as Loop Display, Message to display parameter %LoopList% in and click Save,

Loops Action in Desktop flow

Now, Save the PADLoops Desktop Flow,

Loops Action in Desktop flow

Step 3

Now we can run your PADLoops Desktop Flow in Microsoft Power Automate, and the output of the PADLoops is,

Loops Action in Desktop flow

Summary

Now you have successfully tested Loops Action in Desktop flow - PADLoops in Microsoft Power Automate