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

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.

 

 

WarrenBelz Community Champion
Community Champion

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

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (8,351)