cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Cbarahona
Level: Powered On

How to use http in flow to call a rest and automatically download a generated pdf

How can I do, the user when pressing a button in powerapps this call to microsoft flow and make a request http which is a service that generates a report in pdf and download automatically to the pc, I have the flow ready only that we know how to interpret the answer , since chrome does not create a new tab automatically, in conclusion, I would like the flow to download automatically the pdf either in a new tab or not.

 

I execute flow with ->  Set(FlagResponse;ConsumeREST.Run(JsonFinal;"Legalizacion"));

 

Thanks!

p1.png

 

p2.png

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to use http in flow to call a rest and automatically download a generated pdf

Hi @Cbarahona,

 

Could you please share a bit more about your scenario?

Could you please share a full screenshot about your flow's configuration?

Further, do you want your flow to be executed to download a PDF file automatically?

 

 

I have made a test, and the issue is confirmed on my side.

 

If you want to call a flow from an app, and then download the PDF automatically using the HTTP action of a flow, I afraid that there is no way to achieve your needs in Microsoft Flow currently.

 

Downloading a file into local automatically using HTTP action is not supported within Microsoft Flow currently, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

As an alternative solution, you could consider take a try to download this PDF file into the local System file folder of your PC (you could also take a try to store this PDF file within a cloud storage, e.g. OneDrive). I have made a test on my side, please take a try with the following workaround:3.JPG

 

Within the "Create file" action of "File System" connector, File name set to following formula:

HTTPS-FAQ.pdf

File content field set to following formula:

base64ToBinary(body('HTTP')?['$content'])

The flow works successfully as below:4.JPG5.JPG

 

More details about using expression in flow actions, please check the following article:

Use expression in flow actions

 

More details about the File System connector in Microsoft Flow, please check the following article:

https://docs.microsoft.com/en-us/connectors/filesystem/

 

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: How to use http in flow to call a rest and automatically download a generated pdf

Hi @Cbarahona,

 

Could you please share a bit more about your scenario?

Could you please share a full screenshot about your flow's configuration?

Further, do you want your flow to be executed to download a PDF file automatically?

 

 

I have made a test, and the issue is confirmed on my side.

 

If you want to call a flow from an app, and then download the PDF automatically using the HTTP action of a flow, I afraid that there is no way to achieve your needs in Microsoft Flow currently.

 

Downloading a file into local automatically using HTTP action is not supported within Microsoft Flow currently, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

As an alternative solution, you could consider take a try to download this PDF file into the local System file folder of your PC (you could also take a try to store this PDF file within a cloud storage, e.g. OneDrive). I have made a test on my side, please take a try with the following workaround:3.JPG

 

Within the "Create file" action of "File System" connector, File name set to following formula:

HTTPS-FAQ.pdf

File content field set to following formula:

base64ToBinary(body('HTTP')?['$content'])

The flow works successfully as below:4.JPG5.JPG

 

More details about using expression in flow actions, please check the following article:

Use expression in flow actions

 

More details about the File System connector in Microsoft Flow, please check the following article:

https://docs.microsoft.com/en-us/connectors/filesystem/

 

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,452)