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

Notifications

Announcements

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)
  • MPRSTTL Profile Picture
    2 on at

    Did you found the solution?
    If not then please tell me how did you got 1st task done?

  • 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.

  • AnnaTorti Profile Picture
    10 on at

    @CNT 

    If i use download I can display in pdf viewer?

  • 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 

    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

  • 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 

    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 Did you get it to work?

     

    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 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.

  • 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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard