cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gasilva8
Helper II
Helper II

Get file from a website using HTTP connector

I'm trying to download a file from a password protected website.

My flow uses a HTTP connector to access the site, but I can't find a way to download the file, which have a direct URL to be accessed/downloaded.

Instead of downloading the .xlsx file from the URL, the flow is downloading the webpage body content.

gasilva8_0-1647292872094.png

I appreciate any help!

 

2 REPLIES 2
ChristianAbata
Super User
Super User

hi @gasilva8 you need first file name with extension and content. If your HTTP request gives you those you cna use parse json to get the properties from HTTP > You can find how to use parse Json here https://www.youtube.com/watch?v=eSwdxAJQmJU&t=853s



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
gasilva8
Helper II
Helper II

Hi @ChristianAbata,

Actually the HTTP request returns the HTML code from the website (logon page), using the (generic) URL bellow:

https://website.com/auth/login?redirectUrl=/generatefile/file.xlsx

 

I don't know what to do to get the file content instead of the HTML code. Is there any trick?

 

 

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (1,712)