Power Automate is a powerful tool that enables users to automate their tasks and simplify their workflow. One of the most useful features in Power Automate is the ‘Do until’ action, which automates repetitive tasks based on specific conditions.

In this article, we will discuss how you can use the ‘Do until’ action in Power Automate and explore some practical examples to help you better understand its functionality.

What is 'Do Until' Action

What is ‘Do Until’ Action

The ‘Do until’ action is a looping action in Power Automate that enables users to repeat an action or set of actions based on specified criteria repeatedly. This means that it executes a set of actions while certain conditions are met, and stops when those conditions are no longer true.

How to Use 'Do Until' Action

How to Use ‘Do Until’ Action

To use the ‘do until’ action in Power Automate, follow these steps:

Step 1: Create a new flow
Firstly you need to create a new flow within your desired environment where you want to develop your flow by clicking on “Create” button available at https://flow.microsoft.com/.

Step 2: Add Trigger
After creating the new flow now add appropriate trigger for your Flow. You can select from pre-built triggers or can create custom accordingly e.g., When an item is created – SharePoint etc.

Step 3: Add Do Until Functionality
Now it’s time for adding do-until functionality into our developed Flow so as shown below drag & drop “Until” block into designer screen after adding some initial setup like variable creation with proper data types.\n\n![Adding Do Until Functionality](https://www.codeproject.com/KB/DotNet/5254788/Add_Do_Until_Function_In_Power_Automte/Images/e.png)

Step 4: Specify Condition Criteria
In this step, we specify our criteria when loop will stop. So we simply check whether any data related condition satisfies or not (e.g., checking if a certain field has no data). Add the Boolean condition that you want to be true in order for your loop to exit.

Step 5: Define Action(s) inside Do Until block
Once we complete the above steps of configuring do until Functionality and defining its exit conditions further move onto defining activities within our loop means what actions should execute repeatedly till criteria lie valid. So, here we can easily put any custom or pre-built functionalities based on requirement such as “Send An Email Notification” after sending an email check from Criteria block returns valid then stop these iterations (Until).

Examples

Now let’s look at some examples where we can utilize this functionality.

Example #1: Sending Reminders & Alerts via Emails during Approval process:
Suppose it is mandatory to get approval before starting code deployment stage or giving access rights in your company in this scenerio, you might need automated flow which sends alerts about any pending or delayed approvals. In such situations, you can configure ‘Do until’ action by setting up various fail-safe mechanisms so messages keep sending their reminders via emails according to specified time intervals/ timespan. Finally, when user approves with set number of retries system stops reminder automatically using exit condition preset as checked against response i.e., only receiving a reply with relevant keywords [approved/denied].

Example #2: Incrementally Establish Connection
Often establish connection between different applications scenario-based on specific trigger events albeit may take more than once retrying methods due network issues etc., In this case We will use power automate having do-until repeat same activities till establishing connectivity without throwing errors rather sustain smooth execution no matter how many times retry required say minimum upto 10 time interval blocks. Finally stopping iteration whenever status found equals success criteria lockout entry mechanism comes into play.

Conclusion

In customers’ dynamic business scenarios where managing frequent implementation workflows often become tedious and time-consuming tasks, utilization of automation tools like Power Automate works efficiently and helps maintain consistency in the work. This article illustrated how to use the Do Until action in Power Automate, which is a looping action that repeats specific actions until certain criteria are met. You can implement this automation feature for tasks/activities which need frequent execution or activities with delay intervals e.g., code deployment approvals raises a request, & connection establishment).
Overall, the ‘Do until’ action in Power Automate provides a powerful tool for automating repetitive tasks based on specific conditions. With this feature, users can simplify their workflow and save time by automating tasks that would otherwise require manual effort. By following the steps outlined in this article and considering the practical examples provided, businesses can begin to implement this helpful functionality into their own workflows with ease.

Whether it be sending reminders and alerts via email during an approval process or incrementally establishing connections between different applications, Power Automate’s ‘Do until’ action offers a versatile solution to handling dynamic and complex business scenarios. By streamlining these processes through automation, businesses can improve efficiency and productivity while reducing errors and overhead costs.

In conclusion, implementing Power Automate’s ‘Do until’ action into your workflow is a great way to streamline your operations while improving consistency across your organization. As more businesses adapt to meet changing market needs amid mounting competition, leveraging advanced automation tools like those offered by Power Automate becomes increasingly vital in ensuring long-term success.