ItemId Returned

Aug 28, 2009 at 12:57 PM

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?

Coordinator
Aug 30, 2009 at 12:17 PM

Hi,

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

Hope this helps,

Henning

Aug 30, 2009 at 3:20 PM

Henning,

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!

Tutman