cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

Export html text to html file?

I would like to create an html file from html textbox data.
Could anyone explain how to do this?
Thanks in advance!
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Export html text to html file?

Hey @Englishweb 

 

Just to confirm, have you added flow in the button's action? Where are you getting this error? For some reason i don't see an image in your response. 

View solution in original post

4 REPLIES 4
Highlighted
Dual Super User III
Dual Super User III

Re: Export html text to html file?

Hi @Englishweb 

 

Directly, you cannot convert to html files in PowerApps. As a solution to this, you need to create a flow, which takes inputs from powerapps, then process the data and create a file in Sharepoint, One drive etc. A similar scenario is built in one of my blogs, please refer: https://www.appliedis.com/newly-released-json-function-for-powerapps/
 
You can create your flow as:
 
MicrosoftTeams-image (83).png

 

To call this flow from powerapps, you can register flow on a button in Powerapps and use the expression as:
'PowerApp->Createfile'.Run(HtmlText1.HtmlText)
 
'PowerApp->Createfile' is the name of flow and HtmlText1 is the control which holds the html value.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Post Patron
Post Patron

Re: Export html text to html file?

Hello 

'Createfile'.Run(HtmlText1.HtmlText)

Createfile is the name of the flow, HtmlText1 is the Html textbox containing the data (see image)

I'm trying to save the html file to Onedrive for business

What am I doing wrong?

Thanks

Highlighted
Dual Super User III
Dual Super User III

Re: Export html text to html file?

Hey @Englishweb 

 

Just to confirm, have you added flow in the button's action? Where are you getting this error? For some reason i don't see an image in your response. 

View solution in original post

Highlighted
Post Patron
Post Patron

Re: Export html text to html file?

Once again I have missed the obvious...now it works perfectly

THANK YOU again for your help.(shame I can only click the like button once) 

you are brilliant!!

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,934)