cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User
Super User

Re: View PDF's from SharePoint Library with Folders

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.

 

 

Highlighted
Super User
Super User

Re: View PDF's from SharePoint Library with Folders

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,573)