We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

EWSClient: Updating/editing of contacts supported?

Hi all,

With the below mentioned code I can successfully create new contacts with the EWSClient class. Is it also possible to edit the contact I’ve just created? If so, how? There is no such method as UpdateContact. Thanks in advance.

Code to create contacts:

// Create instance of EWSClient class by giving credentials

IEWSClient client = EWSClient.GetEWSClient(“https://outlook.office365.com/ews/exchange.asmx”, “testUser”, “pwd”, “domain”);

Client.ImpersonateUser(ItemChoiceType.PrimarySmtpAddress, "BobK@contoso.com")

 //Initialize MapiContact object and populate contact information

Aspose.Email.Outlook.MapiContact contact = new Aspose.Email.Outlook.MapiContact();

contact.ElectronicAddresses = null;

contact.Telephones = null;

contact.NameInfo = new MapiContactNamePropertySet(“John”, “”, “Doe”);

//Create the contact on the Exchange server



Hi Niels,

Thank you for considering Aspose.Email.

At present, Aspose.Email’s EWS Client supports creating and deleting contacts only. Updating a Contact on Exchange Server is not supported. A new feature request with id: NETWORKNET-34283 has been logged in our issue tracking system for this feature’s implementation. Once we have any information or a fix version available for this feature, we’ll write back here to update you. We appreciate your patience in this regard.

The issues you have found earlier (filed as NETWORKNET-34283) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.