cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dmac73
Frequent Visitor

View PDF's from SharePoint Library with Folders

Want to have a dropdown with the folders in a SharePoint Library and when the dropdown is selected a gallery should lists the files inside. Then when a PDF is selected from that gallery the PDFViewer displays the document. 

 

 

JSA Viewer.png

2 REPLIES 2
WarrenBelz
Super User III
Super User III

Hi @dmac73,

This is not a simple process - I have an app that does exactly what you want and will share the specs so you can apply it to your requirements.
Firstly at App OnStart, I have this

Set(
    stSite,
    "https://xxxxx.sharepoint.com/sites/xxxxx/xxxxxDocs"
);
ClearCollect(
    colDoc,
    xxxxxDocuments    //this is the SharePoint Library Name
);

The Items of the Gallery are this

Sort(
   colDoc,       
   DocName,
   Ascending
)

The View button on the Gallery does this

Set(
    vID,
    ThisItem.ID
);
Set(
    stPDFName,
    ThisItem.Name
);
Set(
    ViewPDF,
    PDFView.Run(
        stSite,
        Concatenate(
            "/",
            ThisItem.'Folder path',
            First(
                Split(
                    stPDFName,
                    "."
                )
            ).Result,
            ".pdf"
        )
    )
)

The Document property in the PDF viewer is this

ViewPDF.pdf

The Flow does this

PDFView.png

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.

 

 

Hi @dmac73 

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

 

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.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,818)