question

subcontact-0094 avatar image
0 Votes"
subcontact-0094 asked ·

Logic Apps Delay with millisecond units

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
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@subcontact-0094 Thank you for the question. We will review and update at the earliest.

0 Votes 0 ·

Hi @JayaC-MSFT , thanks for looking into this!
Did you have any luck finding an answer?..
It seems like a trivial / obvious thing to do but I haven't found a solution.
I'm surprised no one else has needed this.

Thanks again

0 Votes 0 ·

1 Answer

JayaC-MSFT avatar image
0 Votes"
JayaC-MSFT answered ·

Hello @subcontact-0094 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.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.