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 pdf file in power...
Power Apps
Answered

Open pdf file in power apps from one drive

(0) ShareShare
ReportReport
Posted on by 10

Hi,

 

I'd like to know if it's possible to list pdf files from a folder in one drive and open in pdf viewer?

 

Thanks in advance,

 

Anna

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @AnnaTorti Use the OneDrive connector (https://learn.microsoft.com/en-us/connectors/onedrive/#list-files-in-folder) to list the files and then the Launch command (https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-param) to open the pdf file.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • AnnaTorti Profile Picture
    10 on at

    @CNT I'm not able to find the parameter for Launch command to open a pdf in one drive, I found only for Sharepoint.

    I hope you can help me, I'm close to the solution.

    Thanks in advance.

    Anna

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @AnnaTorti You would be the of using the Download function (https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-download).

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @AnnaTorti Did you get it to work?

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • AnnaTorti Profile Picture
    10 on at

    @CNT 

    It works but not as it should.
    The power app must
    1) lists items in a onedrive directory
    2) selecting an element (pdf file) to show it in the pdfviewer
    First point works.
    Second point I don't know how I can do. I'm able to download but how i can show the file inside pdfviewer?
    Thanks
    Anna

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @AnnaTorti This video from Reza should help you out,

    https://www.youtube.com/watch?v=vqK29FWbLxU

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • AnnaTorti Profile Picture
    10 on at

    @CNT 

    Thanks for the hint. I tried but in onedrive thumbnail is not a file property like in sharepoint.
    I tried to create a flow and running the GetFileContent I get the file, but the content is not readable by the PDFViewer...
    Ideas?

    Thanks a lot

    Anna

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @AnnaTorti Yes the pdf viewer is a bit limited in what it can display. That's the reason I have used Download in my App.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • AnnaTorti Profile Picture
    10 on at

    @CNT 

    If i use download I can display in pdf viewer?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @AnnaTorti It will open in the browser.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard