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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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

 

 

omar885
New Member

 

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

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,073)