Do you have a sample that also set the Email address?
Here is my code:
MapiContact outlookContact = new MapiContact();
outlookContact.ElectronicAddresses = new MapiContactElectronicAddressPropertySet();
outlookContact.ElectronicAddresses.Email1 = new MapiContactElectronicAddress("", contact.Email);
outlookContact.NameInfo = new MapiContactNamePropertySet(contact.FirstName, contact.Initials, contact.LastName);
outlookContact.ProfessionalInfo.CompanyName = contact.CompanyName;
outlookContact.ProfessionalInfo.DepartmentName = contact.Department;
outlookContact.ProfessionalInfo.Title = contact.JobTitle;
outlookContact.Telephones = null;
contactType = client.CreateContact(outlookContact);
Each time I called the CreateContact I received this error:
The request failed schema validation: The element 'PhoneNumbers' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types' has incomplete content. List of possible elements expected: 'Entry' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types'.
<span style=“font-size:10.0pt;line-height:115%;font-family:“Helvetica”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;color:#333333;mso-ansi-language:EN-US;
mso-fareast-language:EN-US;mso-bidi-language:AR-SA”>Thanks Emmanue
This message was posted using Email2Forum by kashif.iqbal.