web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP Get results in Ob...
Power Automate
Unanswered

HTTP Get results in Object Moved Error

(0) ShareShare
ReportReport
Posted on by 23

Hi there,

 

I am trying to build a flow to post a report to SharePoint that I receive daily via a link in an Outlook email. But the link itself is coded to automatically download the file when launched.

 

I managed to split out the URL and grab it, but when I used the HTTP get function, it returns an error saying the Object Moved. Any ideas? I was thinking I might have to write some kind of visual basic script to launch the URL, but I'm hoping someone knows an easier way to do it in Power Automate instead?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @careyj,

     

    Are you getting a HTTP 302 back? If so, it is very likely that the download link is in the location header of the response.

     

    Use a second HTTP action to navigate to that download link. Set the configure run after setting of the second action to has failed. In the URI use the following expression:

    actions('HTTP').outputs.headers.Location

     

    I have written about this approach (in my example it was a HTTP 301 btw) in one of my blogs:

    https://www.expiscornovus.com/2021/01/08/how-to-workaround-a-http-301/

     

  • careyj Profile Picture
    23 on at

    Yes! It's a 302 error. Thank you so much for the direction. I will try it now and get back to you. I was worried it had something to do with authenticating and permissions via PowerAutomate instead of my local machine (w a cookie?) but let me try it first. 

  • careyj Profile Picture
    23 on at

    Hi @Expiscornovus  -

     

    So I tried that and it failed again with another 302 error and then sent a redirect to the support page. I am wondering if I'm not choosing the right authentication protocol? I am trying to pull a file from a 3rd party for which I have credentials, but they are not admin credentials. 

  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @careyj,

     

    Can you share screenshots of the failed Http actions, specifically the outputs? This will help us troubleshoot. Obfuscate data if needed btw

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard