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

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (81,763)