
Good morning all!!
I have built an app thru PowerApps, with the HTML builder, and saved the HTML created doc to OneDrive, but also wanted to attach it to an email.
I wrote the formula... and it looked okay, no errors, but when I ran it, I got a 'Runtime Error'., stating
<!HTML PUBLIC'-//W3C//DTD HTML 4.01//EN""http://w3.org/TR/html4/strict.dtd">....
When I went to that http, it gave me verbiage about HTML4 and HTML5.
EEK! Any ideas?
Thanks,
Bobbi
Hi @Anonymous ,
Could you please share a bit more about your scenario?
How do you type your HTML content within your app? Using HTML text control?
Further, how do you save the HTML content into a file, and store it within OneDrive folder? via Microsoft Flow? Do you type the formula you provided within the HTML text control?
If you type the formula you provided within the HTML text control, I think there is something wrong with it. I have made a test on my side, please take a try with the following workaround:
Set the HtmlText property of the HTML text control to following:
"<!HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://w3.org/TR/html4/strict.dtd'> <table border='1'> <tr> <td>TaskName</td> <td>Executor</td> </tr> <tr> <td>PowerAppss Issue Report</td> <td>Kris Dai</td> </tr> </table> "
On your side, you should type:
"<!HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://w3.org/TR/html4/strict.dtd'>" /* <-- The URL should be wrapped with single quotes */
If you want to send an email with HTML file as an attachment, I think there is no direct or easy way to achieve your needs in PowerApps currently. Based on your needs, I think the combination of PowerApps and Microsoft Flow could achieve your needs.
Please check and see if the following videos would help in your scenario:
https://www.youtube.com/watch?v=IhE0-HumNNo&feature=youtu.be
https://www.youtube.com/watch?v=2rfAQe1kK8M
Best regards,