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

Download Document from URL in Power apps

Hello  Team,

 

We have created a power app which have fucntionaliy to download the document.

We are using Azure Api app as the data source

We are adding URL in Download function as below.

Download("https://TESTcommercialapproval.azurewebsites.net/DownloadDocument?DocumentPath=/sites/commercialprocessuat/Department/Commercial/CommercialProcess/prdocuments/7800-Mining-01-2018-2033/NFA/Microsoft_Press_ebook_Introducing_Power_BI_PDF_mobile.pdf&fileName=Microsoft_Press_ebook_Introducing_Power_BI_PDF_mobile.pdf")

 

  

This function works awesome in browser.

But in power app through mobile it throus error as 
"The URL passed to the function is not valid".

 

When the URL hits it goes to the api and call the function and return the document stream back,

Can you please help me out for this ?

I am not aware what mobile is accepting to download document as browser is accepting File stream.

Please correct if anything wrong 

 

 

Thanks 

Dipen Shah

1 REPLY 1
alex3
Level: Powered On

Re: Download Document from URL in Power apps

Where you able to solve this? @DipenShha