cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DavePotts_BritE
Level: Powered On

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
Level 8

Re: How to Handle HTTP 302 Redirects in MS Flow

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
Level 8

Re: How to Handle HTTP 302 Redirects in MS Flow

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

hifni
Level: Powered On

Re: How to Handle HTTP 302 Redirects in MS Flow

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
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,515)