
Announcements
Hello Community,
I have a query regarding downloading attachments in PowerApps.
I have a SharePoint list, and I want to allow users to download a file attachment from a specific record by clicking a button in a Canvas App.
I am using the Download() function with the file's Absolute URI, and it works perfectly when running the app in a web browser.
However, when I try the same approach in PowerApps Desktop, the download does not work.
// Extract SharePoint site from the file AbsoluteUri
Set(SharepointSiteURL, Mid(ThisItem.AbsoluteUri, 1, Find("/Lists/", ThisItem.AbsoluteUri) - 1));
// Create the downloadable link
Set(DownloadableLink, SharepointSiteURL & "/_layouts/15/download.aspx?SourceUrl=" & EncodeUrl(ThisItem.AbsoluteUri));
// Download the file
Download(DownloadableLink)
Is there any alternative way to download a SharePoint file in PowerApps Desktop? Any suggestions or workarounds would be greatly appreciated.
Thanks in advance! 😊