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??
Solved! Go to Solution.
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.
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.
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.
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.
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.