ItemId Returned

Aug 28, 2009 at 11:57 AM

I am receiving notification of new mail items for a mailbox.  I want to go retrieve the EmailMessage when the notification comes in.  I am using the EWS Managed API 1.0 RC to retrieve the message.  When doing so, the EmailMessage.Bind method complains that I am passing in an EwsLegacyId instead of an EwsId.  I can convert the Id to the EwsId format by calling ExchangeService.ConvertId.  However, this is another round trip to the server.  Is there any way to either receive the notification in EwsId format, or be able to make an EmailMessage.Bind call using EwsLegacyId to eliminate the extra Convert call?

Aug 30, 2009 at 11:17 AM


which IExchangeWebServiceAdapter are you using? The built-in? Try enabling the SP1 features (by setting the IsPublicFolderAccessEnabled to true).

Hope this helps,


Aug 30, 2009 at 2:20 PM


Yes, I am using InfiniTec.Exchange.Notifications.ExchangeWebServicesAdapter.  I tried setting IsPublicFolderAccessEnabled=true, and that indeed fixed the issue.  Thanks so much for your help!