Logic Apps Delay with millisecond units

John C 1 Reputation point
2021-03-01T02:57:17.017+00:00

Hi,
Is there a way to introduce a delay in a loop that is less than one second EG 300 milliseconds
The Delay action does not support units less than 1 second (I also tried 0.x seconds which did not work).

Purpose:
I am looping through an external HTTP API call which is paginated.
The response tells you if there's more to retrieve - hence the loop.
I want to introduce a short 300 millisecond delay inside of the loop so that I do not overwhelm the service and not get throttled/denied.

I also tried inline javascript but it didn't seem to support settimeout (probably doesn't support async methods (callbacks, promise and await styles did not work)

Thanks!

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,606 Reputation points
    2021-03-04T08:20:18.347+00:00

    Hello @John C as millisecond option is not available now, you may raise a feature request for that. For now, as a workaround, you can leverage Azure function to get the data, implement delay and process it to return result. Please let me know if that makes sense.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.