web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Download PDF directly ...
Power Apps
Unanswered

Download PDF directly from Powerapps

(0) ShareShare
ReportReport
Posted on by 28

Hi all,

 

I am having a few PDF on my local comp and I have uploaded them into the SharePoint. Is there any code that I could type in the PowerApps to download the PDF directly to my local computer?

 

Thank you.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    Hi @da_1299 ,'

    No - Power Apps is a cloud-based solution (hence all "destinations" are also cloud. The only way you could do this is to manually download them and save to the local drive.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • da_1299 Profile Picture
    28 on at

    Thank you but is it possible for me to send an email by attaching the pdf into it by clicking a button on PowerApps?

  • WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    Hi @da_1299 ,

    Not from your local drive - it would have to be in OneDrive or in a SharePoint Library (and then you would also need a Flow.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • vladimir84 Profile Picture
    322 on at

    Hi @da_1299 ,

    Check out this guide to see if it is helpful for your operation. After setting up the flow, you can associate it to a button in PowerApps as a trigger

    Power Automate - Send SharePoint files as attachments | Microsoft Docs

  • da_1299 Profile Picture
    28 on at

    Thank you all. I will have a try on it first.

  • PauloRech Profile Picture
    105 on at

    I'm using Download() function, getting the AbsoluteURI of the attached PDF file, using one LookUp inside another.

     

    Download( 
     LookUp( 
     LookUp( SP_LIST , FILTER ).Attachments,
     EndsWith(DisplayName,".pdf"), 
     AbsoluteUri
     )
    )

     

    Does it solve your issue?
    Please, check as a solution. 


  • da_1299 Profile Picture
    28 on at

    May I know what should I enter inside the LookUp() and EndsWith()?

     

    My PDF is stored in SharePoint. I have created a document library in SharePoint named 'Routine' to store the PDF. Then i have used a pdf icon in PowerApps and hope to download the pdf to local or it could pop up in the browser instead of navigating me back to SharePoint. 

     

    Thank you.

  • PauloRech Profile Picture
    105 on at

    Hi @da_1299 

    In a Document Library, you can use the 'Link to the item' property.

    In the PDF icon you created, put the code below in OnSelect property.

    Something like this:

     

     

    Download( 
     LookUp( 
     Routines , 
     FILTER, 
     'Link to the item' 
     ) 
    )

     

     

    Obviously, you need to define a FILTER to get the PDF you want.
    If you have some questions about LookUp() function, please visit Filter, Search, and LookUp functions - Power Apps | Microsoft Docs.

    I hope I'd help.

  • YuYu2runrunrun Profile Picture
    13 on at

    Yes!! There is a solution:

    If you open the SharePoint pdf document list, open your web browser developer tools, Choose the pdf from sharepoint list, Right click, choose the "download" button from sharepoint list. now you will find a uniqueID from developer tools under Network, go to find the download.aspx?UniqueID:

    YuYu2runrunrun_0-1648090701189.png

    Copy this url to PowerApps Button Onselect

    YuYu2runrunrun_1-1648091117213.png

     

    It will download this file directly.

    Hope this helps and works for you!

     

  • shastri Profile Picture
    2 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard