Hi community,
I'm having trouble downloading files from the Power Apps gallery connected to the SharePoint document library, and here are the details:
1. The document library 'FICHAS TECNICAS' has been connected to Power Apps.
2. In the Power Apps canvas, a variable 'VarFolderPathCurrent' has been created in OnStart, where the root path of the library is set. Here's the syntax:
Set(VarFolderPathCurrent, "FICHAS TECNICAS/")
3. A gallery has been created on the screen to display information from the library (Image 01).
4. There's a syntax for the document icons to open the document in a new tab (Image 02), and here's the syntax:
If(
ThisItem.EsCarpeta;
Set(VarFolderPathCurrent, ThisItem.'Ruta de acceso completa' & "/");
Launch(ThisItem.'Vinculo al elemento', Blank(), LaunchTarget.New)
)
5. What the user is requesting is an option to automatically download the file when clicked, rather than opening it in a new tab. What syntax should be used to automatically download the file?
Image 01: Screen in Power Apps

Image 02: open the document in a new tab

I look forward to hearing from you
Have a great day!!!