cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ozcar
Frequent Visitor

HTTP get download file

Hi

 

I have a service that provides an API where I can download files with at HTTP GET command and basic auth. It works fine when Im testing the API with Postman but I cant find out how to download that file with Flow and for example put it in my onedrive. Anybody that could help me out a bit?

 

Regards,

 

Ozcar Ardfors

1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps
Power Apps

Re: HTTP get download file

If the file is a binary and you are looking for a way to simply transfer files between the HTTP endpoint and any storage service, you can add a HTTP to download the file and save the content using the "Create File". Here is an example of a flowHTTPSave.PNG

View solution in original post

11 REPLIES 11
Community Support
Community Support

Re: HTTP get download file

Hi @Ozcar,

 

Please check the following blog:

Five new services and improved advnaced capabilities for JSON and HTTP

 

In your scenario, I think HTTP action and the Parse JSON should be suitable to work.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ozcar
Frequent Visitor

Re: HTTP get download file

Hi

 

Thank you for showing me that! It was super cool to parse JSON respones. But unfortunally I dont know how to write a schema that will take care of a binary gzip file. Any idea?

 

Regards,

 

Ozcar Ardfors

 

 

Power Apps
Power Apps

Re: HTTP get download file

If the file is a binary and you are looking for a way to simply transfer files between the HTTP endpoint and any storage service, you can add a HTTP to download the file and save the content using the "Create File". Here is an example of a flowHTTPSave.PNG

View solution in original post

Ozcar
Frequent Visitor

Re: HTTP get download file

Yes it works! Sometimes the solution is so so easy. Thank you very much.

 

Regards,

 

Ozcar Ardfors

Alerodri
Frequent Visitor

Re: HTTP get download file

Hello Ozcar

 

kann you post screenshots of the solution you used?

Does your link links direct to the file or is a Callback or Server Response?

 

It seems that with JSON can be done but I also don´t know how to do it exactly.

 

I would strongly apreciate your help!

 

Cheers

Alex

Ozcar
Frequent Visitor

Re: HTTP get download file

Hi

 

Its very simple. Works exactly as described above. Do an HTTP GET and create the file with the body response. Not sure what is unclear with the solution.

Alerodri
Frequent Visitor

Re: HTTP get download file

Thank you for your feedback Ozcar. The problem with this settings is that the URL is a redireccion, and I get a 302 error. These are the details.

 

Do you have any ideas to manage this URLs?

 

Thanks in advance.

 

 

Ozcar
Frequent Visitor

Re: HTTP get download file

No it seems to be a problem with response from the service you are trying to use. I dont have a direct solution for you but I recommend to use Postman first before attempting to get it to work in Flow.

 

https://www.getpostman.com/

Alerodri
Frequent Visitor

Re: HTTP get download file

Hello Ozcar, 

 

It just workt parsing the JSON. Thank you very much anyway.  This is how I did it. 

Screenshot_5.png

Highlighted
dav_formica
Regular Visitor

Re: HTTP get download file

Is this working still? I'm trying the same exact thing but I don't get the "Body" variable containting the csv data from the HTTP GET.  Usually, when available it shows as Dynamic content but it's not there.   I typed it it to no avail.

 

 

 

Ozcar
Frequent Visitor

Re: HTTP get download file

Its working fine for me.

 

//Ozcar

Helpful resources

Announcements
Did you attend MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’ve streamed the digital event live, or you're watching on-demand, claim your attendee badge to sport on your profile.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (5,690)