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

Re: Open files from documents library

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

7 REPLIES 7
Super User
Super User

Re: Open files from documents library

@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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Anonymous
Not applicable

Re: Open files from documents library

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

 

 

Super User
Super User

Re: Open files from documents library

@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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
JC75
Level: Powered On

Re: Open files from documents library

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.
Super User
Super User

Re: Open files from documents library

@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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
JC75
Level: Powered On

Re: Open files from documents library

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

Re: Open files from documents library

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

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,822)