cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Interacting with 302 response to HTTP GET action in flow

I'm using the HTTP action to make a get request to a URL.  The URL provides a 302 response, which causes the HTTP action to fail and my flow to stop.

 

I would like to get the location out of the response and continue with my flow.

 

Can anyone suggest a solution?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Interacting with 302 response to HTTP GET action in flow

Hi @menkema 

 

Directly you cannot allow the flow to consider 302 as a valid response and move forward with it.
 
As a workaround, you can create an action to initialize variable to fetch the value out of the response and you need to configure the run after of that action as:
 
MicrosoftTeams-image (71).pngMicrosoftTeams-image (72).png
In the value of this variable you can collect the response location. If you can share the schema of the returned response, we can help you with the formula to get the location out of it.
 
After the last action on the retry, you can add a terminate action and configure a status code of your choice. 
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

Re: Interacting with 302 response to HTTP GET action in flow

Hi @menkema 

 

Directly you cannot allow the flow to consider 302 as a valid response and move forward with it.
 
As a workaround, you can create an action to initialize variable to fetch the value out of the response and you need to configure the run after of that action as:
 
MicrosoftTeams-image (71).pngMicrosoftTeams-image (72).png
In the value of this variable you can collect the response location. If you can share the schema of the returned response, we can help you with the formula to get the location out of it.
 
After the last action on the retry, you can add a terminate action and configure a status code of your choice. 
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Frequent Visitor

Re: Interacting with 302 response to HTTP GET action in flow

@yashag2255 I am having the same issue. Could you show me how to grab the location header? 

Thank you in advance

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Top Kudoed Authors
Users online (7,480)