Skip to main content

Notifications

Community site session details

Community site session details

Session Id : SEMeUpfz7LlAJLP5TQDwfl
Power Apps - Building Power Apps
Unanswered

HTML text control and href with data uri

Like (0) ShareShare
ReportReport
Posted on 24 Nov 2022 21:23:54 by 309

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 -

 

prathyoo_0-1669324638217.png

 

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 -

prathyoo_2-1669324894882.png

 

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. 

Categories:
  • SebS Profile Picture
    4,146 Super User 2025 Season 1 on 24 Nov 2022 at 22:54:07
    Re: HTML text control and href with data uri

    @prathyoo 

     

    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

     

     

  • SebS Profile Picture
    4,146 Super User 2025 Season 1 on 24 Nov 2022 at 22:49:29
    Re: HTML text control and href with data uri

    You Still have ----->"& varFilename &" <--- ----->"& varDataURI &" <--- You need to replace them all

  • psreek Profile Picture
    309 on 24 Nov 2022 at 22:46:36
    Re: HTML text control and href with data uri

    @SebS 

    Thanks. Tried your suggestion but that did not work - the link is still not enabled.

     

    prathyoo_0-1669329973983.png

     

  • SebS Profile Picture
    4,146 Super User 2025 Season 1 on 24 Nov 2022 at 22:36:02
    Re: HTML text control and href with data uri

    @prathyoo 

     

    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

  • SebS Profile Picture
    4,146 Super User 2025 Season 1 on 24 Nov 2022 at 22:35:59
    Re: HTML text control and href with data uri

    @prathyoo 

     

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 54

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 42 Super User 2025 Season 1

Overall leaderboard