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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,750)