Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer Service forum

XML in outgoing mails?

(0) ShareShare
ReportReport
Posted on by 45

Hi everyone,

I'm trying to send mails with XML structures for certain (but not all) incidents. The XML contains various information about the incident.

The problem is that even when I configure the workflow to only send text, it breaks up the XML structure like this:

<?xmlversion=3D"1.0" encoding=3D"utf-8"?>
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<INCIDENT><PROPERTY1>
</head>
<body>
Something</PROPERTY1>
<PROPERTY2>Something</PROPERTY2>
</INCIDENT>

</body>
</html>


HTML tags are inserted inside the XML structure (apparently at the point where actual text appears for the first time).

My only idea to solve this is to create a plug-in that runs on the creation of an e-mail entity and strips the HTML. Is there a better way to preserve the XML?
Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Featured topics

Product updates

Dynamics 365 release plans