Delay and Delay until action in Azure Logic Apps

In Azure Logic Apps, you can introduce delays in your workflow using the Delay and Delay Until actions. These actions are useful when you need to pause the execution of your logic app for a specific duration or until a specific time.

1. Delay Action

The Delay action allows you to pause the workflow for a specified amount of time (in seconds, minutes, hours, or days).

Example:

Suppose you want to delay the execution of your logic app for 5 minutes before proceeding to the next action.

  1. Add a Delay action to your logic app workflow.
  2. Configure the Delay action:
    • Count5
    • UnitMinute

This will pause the workflow for 5 minutes before moving to the next step.

2. Delay Until Action

The Delay Until action allows you to pause the workflow until a specific date and time.

Example:

Suppose you want to delay the execution of your logic app until a specific date and time, such as 2023-12-25T00:00:00Z (Christmas Day).

  1. Add a Delay Until action to your logic app workflow.
  2. Configure the Delay Until action:
    • Timestamp2023-12-25T00:00:00Z

This will pause the workflow until the specified date and time is reached.

Key Notes:

  • Delay is used for fixed time intervals.
  • Delay Until is used for specific timestamps.
  • Ensure the timestamp in Delay Until is in UTC format (YYYY-MM-DDThh:mm:ssZ).

These actions are helpful for scenarios like rate limiting, scheduling, or waiting for a specific event before proceeding.

Post a comment

Leave a Comment

Scroll to Top