Kamsiinov
Kamsiinov

Reputation: 1490

Logic app until loop breaks after HTTP call receives 400

enter image description here

Under change limits I have count 8 and timeout as PT30M. The problem is that I would like to loop eight times and try that HTTP call until I receive status code 200. However, my loop breaks after the first call if the HTTP request received 400. What should I add in the loop to make it work?

Upvotes: 1

Views: 1023

Answers (1)

Frank Borzage
Frank Borzage

Reputation: 6816

You can initialize a variable that stores the status code.

enter image description here

Then use the Set variable in the Until action to assign the status code returned by the Http action to the variable.

enter image description here

You need to configure configure run after to make your Azure logic app still run after the Http action fails.

enter image description here

enter image description here

Upvotes: 1

Related Questions