cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Dual Super User II
Dual Super User II

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. 

View solution in original post

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (26,315)