How to Use Power Automate Delay Action

In this Microsoft Power Automate Tutorial, we will learn what Power Automate Delay Action is and how to work with Delay Action in Power Automate. Also, we will discuss the below topics such as:

  • Power Automate Delay vs Until Delay
  • Power Automate Delay milliseconds
  • Power Automate Delay email

Power Automate Delay Action

  • The Power Automate Delay action will pause or delay the Flow until the specified timestamp is over.
  • In Power Automate delay action, we can manually set a time in either Months, weeks, Days, Hours, Minutes, or Seconds to wait for the flow before completing the next action. 

How to set Delay Action in Power Automate

Here, we will use how to set a delay action using Power Automate.

In this example, we will create an instant cloud Flow. Then, we will initialize the variable, which will wait for 1 minute, and return the initialized variable value in the compose action.

In Power Automate, create an instant cloud flow, choose the trigger as Manually trigger a flow, and then provide the flow and select the create option.

Example of Delay Action in Power Automate
Example of Delay Action in Power Automate
  • Select an action to initialize the variable, enter the variable name, and choose the variable type as  String, as displayed below:
  • In the Value field, Pass the string values as highlighted below:
Delay Action in Power Automate
Delay Action in Power Automate
  • Then click on (+New step) to add a delay action for 1 minute, so it will pause the flow for 1 minute before it goes to the next action.
  • Select Delay action and then count 1 and unit as a minute. Here, you can set your delay as per the requirement.
Example of Power Automate Delay Action
Example of Power Automate Delay Action

Then add compose action and choose the input as the initialized variable so that it will return the values initialized.

Power Automate Delay Action example
Power Automate Delay Action example

To test and run the flow, select the Save -> Manually Test –> Run flow option.

Power Automate Delay
Power Automate Delay

Once the flow runs, we can see the expected output in the compose action after the delay action is performed.

Power Automate Delay Action
Power Automate Delay Action

This is how to set a delay action using Power Automate.

Power Automate Delay vs. Until Delay

Let us discuss the difference between Delay and Until Delay actions in Power Automate.

Power Automate Delay Power Automate Until Delay
The Power Automate Delay will pause or delay the Flow until the specified timestamp is over.The Power Automate Delay Until will pause the flow until the mentioned specified timestamp is over.
 Here we will specify that the timestamp is an ISO standard date and time format.The Power Automate Delay Until will pause the flow until the specified timestamp is over.
Power Automate Delay vs. Until Delay

The above table defines the difference between Delay and Delay Until action in Power Automate.

Power Automate Delay milliseconds

Let us see how we can set a delay of milliseconds in Power Automate.

In this example, first, we will initialize the variable to get the current date, the flow will wait for 20 milliseconds, and then we will return the variable value in the compose action.

  • Create an instant cloud flow in Power Automate; once the flow has been created, select the +new step and search and select the initialized variable option.
  • Now enter the variable name and choose the variable type as  String, as displayed below:
  • In the Value field, Pass the expression utcNow() as highlighted below, which returns the current date value:
Delay milliseconds in Power Automate
Delay milliseconds in Power Automate
  • Then click on (+New step) to add a delay action for 20 seconds. Then, enter the integer value as 20 and the unit as a second in the count.
Example of Power Automate Delay milliseconds
Example of Power Automate Delay milliseconds

Select +new step, add compose action, and choose the input as the initialized variable so that it will return the value initialized, which consists of the current date.

Power Automate Delay milliseconds example
Power Automate Delay milliseconds example

Save and run the flow by selecting Save -> Test -> Run flow options.

Power Automate Delay milliseconds
Power Automate Delay milliseconds

The screenshot below shows the expected output, which returns the current date value (i.e. 01-06-2023) in the compose action after the delay action performs for 20 milliseconds.

Power Automate Delay milliseconds
Power Automate Delay milliseconds

This is how to set a delay of milliseconds in Power Automate.

Power Automate Delay email

Here, we will see how to send an email after a delay action in Power Automate,

In this example, we will send an email to a user after a delay action is performed, Here, we will set a delay for 2 minutes so that the flow will pause for the mentioned timestamp.

In Power Automate, create an instant cloud flow and add a new step to initialize the variable. Later, enter the Variable name, Variable type, and Variable value as shown below:

Power Automate Delay email
Power Automate Delay email

Then click on (+New step) to add a delay action for 2 minutes, so it will pause the flow for 2 minutes before it goes to the next action.

Power Automate Delay email example
Power Automate Delay email example
  • Select +New step to add send an email action and then select the option for HTML code in the body of the send email action.
  • It will show us the code view in the HTML format.
Example of Power Automate Delay email
Example of Power Automate Delay email

Now, we will save and test the flow and test it manually by selecting the Run flow option.

Run Power Automate Flow
Run Power Automate Flow

Once the flow ran successfully, we can see the email received for the mentioned user. Also, we can see that the delay action pauses the flow for 2 minutes and sends the email.

Delay send email in Power Automate
Delay sending emails in Power Automate

In the below screenshot, we can see that the mentioned user received an email as displayed:

Power Automate Delay send email
Power Automate Delay Send email

This is how to send an email after a delayed action in Power Automate.

In this Microsoft Power Automate Tutorial, we discussed what Power Automate Delay Action is and how to work with Delay Action in Power Automate. Also, we discussed the below topics such as:

  • Power Automate Delay vs Until Delay
  • Power Automate Delay milliseconds
  • Power Automate Delay email

You may like the following Power Automate tutorials: