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

Notifications

Announcements

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,189 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,189 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard