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

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
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,720)