Create eMail Problem
I am creating an email using CRMEmail.Send to send an email from a Post URL
process.
I want to insert a link to a CRM record within the body of the email.
However, I'm having troubles using HTML in the email body.
I get the following error:
Error Message: Message: SOAP Server Application Faulted
Stack Trace: at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
at Microsoft.Crm.Platform.Proxy.CRMEmail.Send(CUserAu th Caller, String
EmailXml, String RecipientsXml)
at OpportunityStatus.OpportunityStatus.SendEmail(Stri ng strCRMURL) in
z:\inetpub\wwwroot\crm\custom\opportunitystatus\op portunitystatus.aspx.cs:line 208
Detail: <detail><error><code>80041a04</code><description>A parse error was
encountered in the XML</description><details>A tag was encountered where data
was expected at line 1, column
126</details><file>D:\crm\Build\3297\src\platform\inclu de\OMCommon\CrmPropertyBagUtil.inl</file><line>506</line></error></detail>
I believe this is because I'm using tags when constructing my string in the
C# function.
How can I get it working? Is CDATA the answer?
I've searched the newsgroups for CDATA but can't quite get the syntax
correct in my C# function.
I want to insert a link to an opportunity in the body.
ie.
Please review the opportunity:
<a
href="http://crm/SFA/opps/edit.aspx?id={7BB36925-4E4E-4791-91FA-DAA2EB1AE858}">Click here</a>
Please help!
|