cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Englishweb
Level 8

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
Dual Super User
Dual Super User

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
Dual Super User

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!

Englishweb
Level 8

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

Dual Super User
Dual Super User

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

Englishweb
Level 8

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,482)