ms dynamics 4.0 - email with apostrophe in it
Posted on 2011-03-18
i am programatically creating a contact in crm 4.0.
i am using a windows service which calls into a wsdl generated proxy of the crm webservice.
it works fine - but when i create a contact which has an email address that contains an apostrophe. i.e
contact crmContact = new contact();
contact.emailaddress1 = "firstname.lastname@example.org";
//add other properties...
//this is an instance of my proxy
it always falls over with the following soap exception:
2011-03-16 16:06:56,448  ERROR [(null)] - Soap Exception in :mywindowsservice Error : <error>
<description>An unexpected error occurred.</description>
I have tried escaping the apostrope with sean.o\'email@example.com - but i still get the same exception.
thankyou very much.