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 / Open a pdf-file in can...
Power Apps
Unanswered

Open a pdf-file in canvas app from on-premises gateway

(0) ShareShare
ReportReport
Posted on by 64

Hey, I connected a folder on my PC to power apps through the on-premises data gateway (installer) to connect it to a flow. The 'file system' flow gets triggered when a file is changed or added to the folder on my PC and captures the name of the file and the folder path (only metadata) and saves it as a record in a dataverse table. Now I'm hoping to connect my PC folder through the gateway or through the dataverse table to a canvas-app. My goal is to open the files from my PC folder (mostly PDF-files, maybe an image or an excel-spreadsheet) in a Canvas app. At this moment I'm stuck, I think I need to add a link or a usable folder path to my pdf-files so I can navigate to them from a canvas app.

Can someone tell me how to solve this, thank you.

I have the same question (0)
  • ChrisPiasecki Profile Picture
    6,422 Most Valuable Professional on at

    Hi @mvdb,

     

    You can use the PDF Viewer control to view Pdf files in your Power App. This Document property of this control expects an HTTP URL however. What you can do is use a Power Automate flow to return the PDF file content.

    • Set up an HTTP request trigger. You can define a query parameter which could be your file name on disk or metadata of your choosing.
    • Retrieve the file using the Get File Content action of the File System connector.
    • Add an HTTP response action, setting the content type header to application/pdf, and use the output of the previous step as an input into the response.

     

    You would take the Flow URL and set the Document property of the PDF Viewer, passing in the query string parameter value dynamically from your PowerApp using the file metadata you have. 

     

    This video below goes through in detail how to set this up. It's using the Get File Content of the SharePoint connector, but its identical to using the File System Get File Content connector.

    https://powerusers.microsoft.com/t5/Webinars-and-Video-Gallery/Real-World-PowerApps-How-to-view-SharePoint-PDF-s-in-PowerApps/m-p/104375

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • ChrisPiasecki Profile Picture
    6,422 Most Valuable Professional on at

    Hi @mvdb,

     

    Wondering if the above was helpful and if you were able to solve your issue?

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard