cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
menkema
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
yashag2255
Dual Super User II
Dual Super User II

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

3 REPLIES 3
yashag2255
Dual Super User II
Dual Super User II

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

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

Thank you in advance

Anonymous
Not applicable

@Jon Were you able to fix this issue, I'm running into same issue and not finding the Location attribute in response to redirect.

 

Thanks.

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (53,152)