cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DavePotts_BritE
Advocate IV
Advocate IV

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?

1 ACCEPTED SOLUTION

Accepted Solutions
SCTdan
Continued Contributor
Continued Contributor

Since we can't do anything with HTTP responses, you can set the 'Configure Run after' property on the step following the HTTP connector to 'Has Failed'.  You may want to introduce some additional error checking to handle instances where it actually does fail, but this will let your flow continue past that step.

 

 

 

View solution in original post

2 REPLIES 2
SCTdan
Continued Contributor
Continued Contributor

Since we can't do anything with HTTP responses, you can set the 'Configure Run after' property on the step following the HTTP connector to 'Has Failed'.  You may want to introduce some additional error checking to handle instances where it actually does fail, but this will let your flow continue past that step.

 

 

 

hifni
Frequent Visitor

Can you elaborate further with a full screen shot of your solution; This is for better understanding.

 

THank You,


@SCTdan wrote:

Since we can't do anything with HTTP responses, you can set the 'Configure Run after' property on the step following the HTTP connector to 'Has Failed'.  You may want to introduce some additional error checking to handle instances where it actually does fail, but this will let your flow continue past that step.

 

 

 


 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (4,401)