Updating using EWS is not synced by outlook RRS feed

  • Question

  • I have a simple program that is changing the subject for an existing mail item using the EWS API against Exchange 2010. The call succeeds and i see the change immediately reflect in OWA. However with an outlook 2010 client connected to the same mailbox in cached mode, i dont see this change being picked up upon syncing. If i were to make any subsequent change on this particular mail item from OWA, outlook updates that mail item upon next sync. I am clearly doing something wrong but cant seem to figure it out. Any help will be appreciated!



    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
    service.Credentials = new WebCredentials(username, password);
    service.AutodiscoverUrl(username, new Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverRedirectionUrlValidationCallback(verifyurl));
    AlternateId ewsid = (AlternateId)service.ConvertId(new AlternateId(IdFormat.EwsLegacyId, id, username), IdFormat.EwsId);
    EmailMessage message = EmailMessage.Bind(service, new ItemId(ewsid.UniqueId));
    message.Subject = "new subject4";
    Tuesday, May 24, 2011 7:08 PM