cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Englishweb
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

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

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!

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

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. 

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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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