Hi @Anonymous ,
Could you please share a bit more about your Office365.SendEmail() formula?
Based on the screenshot that you mentioned, the result the emailtemplate.Selected.Body formula returned is a XML structure data (<?xml vresion = "1.0" ... >) rather than a valid HTML strucure data.
If you want the XML structure data to be rendered as a valid HTML strucure data in your email body, I afraid that there is no way to achieve your needs in PowerApps currently.
As an alternative solution, you could consider remove the XML tag from the result the emailtemplate.Selected.Body formula, then type the extracted text within your Office365.SendEmail() formula.
I have made a test on my side, please take a try with the following workaround:
Set the OnSelect property of the "Send Email" button to following:
Office365.SendEmail(
User().Email,
"PowerApps Email Subject",
substitute(
Substitute(emailtemplate.Selected.Body, "<?xml version=""1.0"" ?><xsl:stylesheet xmlns:xsl=""http://www.w3.org/1999/XSL/Transform"" version=""1.0""><xsl:output method=""text"" indent=""no""/><xsl:template match=""/data""><![CDATA[", ""),
"]]><xsl:choose><xsl:when test=""systemuser/fullname""><xsl:value-of select=""systemuser/fullname"" ... >",
""
),
{IsHtml: true}
)
Note: The <?xml version=""1.0"" ?><xsl:stylesheet xmlns:xsl=""http://www.w3.org/1999/XSL/Transform"" version=""1.0""><xsl:output method=""text"" indent=""no""/><xsl:template match=""/data""><![CDATA[ represents the XML tag before the HTML data in your emailtemplate.Selected.Body formula result.
The ]]><xsl:choose><xsl:when test=""systemuser/fullname""><xsl:value-of select=""systemuser/fullname"" ... > represents the XML tag after the HTML data in your emailtemplate.Selected.Body formula result.
Please consider take a try with above alternative solution, then check if the issue is solved.
Best regards,