Tuesday, March 4, 2014

The (real) way to delete a contact email in EWS (Exchange Web Services)

I've found several posts on how to delete the email of a contact. Of course, setting it to null doesn't work. This is what worked for me: first, follow the instructions on this blog.

http://blogs.msdn.com/b/emeamsgdev/archive/2012/05/17/ews-managed-api-how-to-remove-email1-email2-email3-from-a-contact.aspx

But first make sure you read these properties when retrieving the contact to be updated. I was not doing that and it took me a couple of hours to figure out.

1 comment:

Andreas Schultz said...

Thank you for the information. This detail was missing.