EWS GetItem() call fail to return recurrence-id for meetings created/modified using Outlook 2003 & Exchange 2010


                    Le Café Central de
Deva              

                                 
                                 ..... Deva blogs!!




 

 

EWS GetItem() call fail to return recurrence-id for meetings created/modified using Outlook 2003 & Exchange 2010

  • Comments 1

One of my customers reported an issue while they were reading a recurrence calendar with exceptions using Exchange Web Service (EWS) API. Their EWS application uses EWS WSDL to generate stub and uses that to access the server to read the calendar items from Exchange Server 2010.  As part of the business logic, they read exception instance of a recurring meeting to access the recurrence-id using GetItem() call, but the Recurrence-ID was not returned under this scenario:

<t:CalendarItem>
  <t:ItemId Id="AAMkAGJmODU0Y2RkLTMzNWQtNDU0Zi04ZTRmLWZkYmY3NjMzMmY5NwBGAAAAAAAYgD84Mql7RaeCH1aLb3byBwBsPRpqddOASYFOcLJOFXFtAAAABxwqAABsPRpqddOASYFOcLJOFXFtAAABQSkXAAA=" ChangeKey="DwAAABYAAABsPRpqddOASYFOcLJOFXFtAAABQgc0"/>
  <t:ItemClass>IPM.Appointment</t:ItemClass>
  <t:Subject>Test Meeting</t:Subject>
  <t:UID>040000008200E00074C5B7101A82E0080000000020F44873F666CB010000000000000000100000004912C9B37286374CBFC74B4EC1030D74</t:UID>
  <t:Start>2011-02-07T15:30:00Z</t:Start>
  <t:End>2011-02-07T16:00:00Z</t:End>
  <t:IsCancelled>false</t:IsCancelled>
  <t:IsRecurring>true</t:IsRecurring>
  <t:CalendarItemType>Single</t:CalendarItemType>
  <t:MyResponseType>Accept</t:MyResponseType>
  <t:Organizer>
  <t:Mailbox>
  <t:Name>Contoso, Small</t:Name>
  <t:EmailAddress> small@contoso.com </t:EmailAddress> 
  <t:RoutingType>SMTP</t:RoutingType>
  </t:Mailbox>
  </t:Organizer>
  <t:TimeZone>GMT -0600 (Standard) / GMT -0500 (Daylight)</t:TimeZone>
</t:CalendarItem>

When we analyzed the issue happens only with meetings created/modified using Outlook 2003 SP3 clients. The same issue doesn’t occur not with Outlook 2007 & 2010 clients. Due to this issue, their application logic was broken. We tried using FindItem() call, instead of GetItem() but it didn’t make any difference. As part of troubleshooting we noticed that the recurrence-id doesn’t available in the GetItem() response XML; but using the MimeContent, we can parse it manually, look for recurrence-id and can overcome this issue.

foreach (Item it in fiResults.Items)
{
it.Load(new PropertySet(BasePropertySet.FirstClassProperties){ItemSchema.MimeContent});          
MimeContent mc = it.MimeContent;
//Your application logic goes here: Parse the above MimeContent & look for recurrence-id
}

But this turned out not a feasible solution for them as it might be much dependent on Mime encoding type being used as well as the format of recurrence-id is different from what they get as part of GetItem() response. Apart from this, I don’t see any fix/design change/new feature request for Outlook 2003, which is already in extended support.

  • Dave, Thanks for the blog post. I was banging my head with the specific issue for a while. I followed your approach and isolated the issue Outlook 2003 recurrence items. I will give a shot with the specified workaround.

Page 1 of 1 (1 items)
Blog - Post Feedback Form(CAPTCHA)
Leave a Comment
  • Post