cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Open files from documents library

Hi

 

I have made a connection from a Powerapp to a Sharepoint document library, all the files are visual in a BrowseGallery screen - but i cant open the documents.

 

I have tryed to change the OnSelect function both in the BromseGallery and on the NextArrow icon in the gallery.

How can i get the app to open the document chosen??

 

Kind regards

 

Jens Peter

 

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Thanks for the help.

The solution are now working for me, the righ applications are opening and i've got something to work with

 

 

View solution in original post

9 REPLIES 9
RandyHayes
Super User
Super User

@Anonymous 

How is it that you want to open it?

For the most part - You can simply put a Launch(ThisItem.'Link to item') in your action.  This will launch a browser window to the url of the document.

 

I hope that is helpful for you.

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

Thx @RandyHayes 

 

I have tryed your suggestion, after some struggling i got it to open the folder where the document are.

My problem was taht my Powerapps are in danish and in didn't understand Link to item . in my Powerapps it should be Link til element 🙂

 

Are there a way to open the document direkcty and not like this are working for me, the folder where the document are.

/JPS

 

 

@Anonymous 

Sounds like you made some progress.

I'm not sure what you mean by directly open the document - you will have to launch the document or provide a hyperlink to get any other action.  PowerApps doesn't provide a way to open it specifically.

I will say though...Document Libraries are a bit of a pain (and, I believe, why they are somewhat hidden in PowerApps).  The problem being that Document Libraries are really just lists in SharePoint.  The concept of a Folder does not exist in SharePoint (like it does on your computer), so it has to "simulate" it a bit.  That gets confusing for some as it is not what they expect.  So...you really need to think of those as flat lists of documents.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Have a look at this app https://1drv.ms/u/s!Arp1PnSG3hrVtUatVxzOCIBt5Gxd

Can’t take credit a guy called HIRO, posted it.

What I want to work out is if there some better ways to Change way it opens word docs, at present on a iPad it opens the word application which is ok, but prefer it would open in a browser view as be quicker.

@JC75 

So in that particular app, they are just calling the link to the Item in SharePoint and launching that URL. 

What that opens in is going to be governed by the list settings of your document library. 

In SharePoint, go to the list settings for that library and go into the Advanced Settings.  There you can specifiy if documents should open in the browser or in the client application.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Yes don’t particularly want to change settings, as for users accessing SharePoint directly on desktop it wouldn’t be how they want.

 

i found better workaround I change the launch syntax to refer to documentid instead and that opens it quicker in browser view.

Anonymous
Not applicable

Thanks for the help.

The solution are now working for me, the righ applications are opening and i've got something to work with

 

 

View solution in original post

omar885
New Member

 
ToddBacon
Frequent Visitor

That app isn't in a zip format, so I can't import it.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (976)