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

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

12 REPLIES 12
v-micsh-msft
Community Support
Community Support

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.

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

 

 

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

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

 

Regards,

 

Ozcar Ardfors

Alerodri
Frequent Visitor

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

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

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

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

Hello Ozcar, 

 

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

Screenshot_5.png

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.

 

 

 

Its working fine for me.

 

//Ozcar

@Alerodri can you include a screenshot of you entire parse JSON schema?

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,297)