power-automate

How to Handle HTTP 302 Redirects in MS Flow


I'm trying to use MS Flow to extract data from an existing website. To do this I must make two requests:

  1. A request to a login form
  2. A request to retrieve some data

When I fire a HTTP connector to the login form the site responds with a HTTP 302 redirect. This is expected. The Flow fails on receiving the HTTP 302 response and does not proceed to the second request. How can I receive a 302 response and not have my Flow halt with an error?


Solution

  • The solution that works for me is to set the "Configure run after" property of the following action to include "has failed".