exchange-serverexchangewebservicesexchange-server-2007

Can't get Contact ID from EMAILBOX Object


I'm trying to get Contact ID from Email box using ResolveName method but it doesn't returns me the Contact ID Related with that contact. my code  

MS reference https://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.emailaddress_properties(v=exchg.80).aspx


Solution

  • The Id only gets returned if the Contact is located in the users Contacts folder. For Global Address List objects that are returned the Id will always be null because you can't do any further operations on these objects (eg you can do a GetItem on GAL Contacts). The only other valid operation you could do on a GAL contact would be to Load to UserPhoto on 2013 and for this you would just pass the Email Addresss of the contact.

    Cheers Glen