Skip to main content

Notifications

Community site session details

Community site session details

Session Id : SqywmPQgkm6IAbB6bQrTVo
Power Apps - Building Power Apps
Unanswered

PDF Viewer with Document from SharePoint Library Subfolder

Like (0) ShareShare
ReportReport
Posted on 21 Feb 2025 21:17:00 by 4,800 Super User 2025 Season 1
I am trying to use the Power Apps PDF Viewer to view PDF files saved in a SharePoint library subfolder.

I getting and error on the 'Folder Path' portion of the formula.

The Library is structured and Folder / Subfolder / PDF files
 
If(Last(
    Split(
         Gallery1_2.Selected.'File name with extension',
        "."
        )
    ).Value = "pdf",
    "appres://datasources/Test%20Weekly%20Reports/table/4946647d-b0e8-4aee-aeea-93adb9ca9e9b/rows/27/reference/https:%2F%2Fmsmanaged-na.azure-apim.net%2Fapim%2Fsharepointonline%2F683d50a74a9041d1b673a00fc590ab9b%2Fdatasets%2Fhttps%25253a%25252f%25252fworthrosssupport.
sharepoint.com%25252fsites%25252fPropertyOperations%2FGetFileContentByPath%3Fpath=%252f"
&
EncodeUrl(Gallery1_2.Selected.'Folder Path' & Gallery1_2.Selected.'File name with extension'))

The source Gallery has the following in the Items property -
Filter(colWeeklyReports,Report_Creator = Label7_15.Text)


Categories:
  • Phineas Profile Picture
    4,800 Super User 2025 Season 1 on 21 Feb 2025 at 21:38:51
    PDF Viewer with Document from SharePoint Library Subfolder
    I figured it out.

    The 'P' in 'Folder Path' needs to be a lower case 'p'.

    'Folder path'

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 106 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 73

#3
stampcoin Profile Picture

stampcoin 52

Overall leaderboard
Loading started