cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
menkema
Level: Power Up

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
Super User
Super User

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!
1 REPLY 1
Super User
Super User

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!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 215 members 4,715 guests
Please welcome our newest community members: