web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Download Form Data in ...
Power Apps
Unanswered

Download Form Data in a HTML file

(0) ShareShare
ReportReport
Posted on by 90

So i have a form that I have built out in Power Apps, as a Canvas app. I want to create a button to Download all current info as a HTML file almost, to have as like a table, and the user can pick where to save it. I have no clue on how to go about starting this process. I have the download Icon, but not certain on the action code.

 

User presses button

OnSelect (Takes current Text Inputs, and puts them in a table type of format, asks user where to save, then downloads as a HTML or PDF type of file)

Please help. I dont want to use Power Automate unless I have to, as it kinda lags a bit and this is out in the field which might not have the most reliable of internet connections.

Categories:
I have the same question (0)
  • msabau Profile Picture
    270 on at

    I did this, but with Power Automate and I think that there is no other way around it.

    Basically, you want to make a flow that takes and ID from a Power App.

    Then on the OnSelect property of the button you want to use, write NameOfTheFlow.Run(ID of the item). You can get the ID from BrowseGallery.Selected.ID, but there a couple of other ways.

    Then, inside the flow you should have:

     

    1. PowerApps trigger to get the id

    2. Get Item - from sharepoint

    3. Compose connector. This is the thing that will contain your HTML. So write the shell of your HTML in Vs Code, or whatever you choose. Then paste it inside the Compose connector. Then, using Dynamic Values, fill the HTML with the values from your record. --- After this, I strongly suggest you copy all the content from the compose connector, including Dynamic Values, using ctrl+a and ctrl+c, and then paste it in a html file and save it somewhere. That way, if you need to change something in the future about your html, you can do it in Vs Code, then you can just paste it back in the Compose connector and your Dynamic Values will still be there. I do this as using Dynamic Values is such a pain.

    Also, you can include CSS and JS inside the HTML so you can have more functionality.

    4. Create file. Take the body from the Compose generate a file ending with .html, save it where you want and you're done

     

    Feel free to ask if you have any questions

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard