Hi,
We have been trying to retrieve files from a sharepoint library using power automate (as a service account and not end user logged in to powerapps). We have been able to get the file content in powerapp and if it is a pdf we are able to show it in a pdf viewer successfully. But, the document library could contain any file type. So, the idea was to have a link in powerapps for end users to click. On clicking, this should open a windows popup and allow the user to save the file to desktop. We therefore added an html text field as follows -
But, the link never gets enabled. In developer tools, the href attribute does not exist for the element. Just below the link, we have also captured the link htmltext in a text input field. If we take this value and test it out in the below site, the link works as expected and downloads the file to desktop -
Do you know what we would be missing. We are trying to use this approach so as not to provide direct access to the file in the sharepoint document library.
if that does not help try to use the launch() function I think this will work better
Here is documentation :
https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-param
You Still have ----->"& varFilename &" <--- ----->"& varDataURI &" <--- You need to replace them all
Replace all " with ' except First " on the start formula and Last one at the end " and check that You are not allowed to use " except start and Finish of HTML code so maybe this is an issue
Replace all " with ' except First " on the start formula and Last one at the end " and check than You are not allowed to use " except start and Finish of HTML code so maybe this is an issue
WarrenBelz
85
Most Valuable Professional
MS.Ragavendar
54
Michael E. Gernaey
42
Super User 2025 Season 1