none
EWS - Creating an orphaned instance programmatically RRS feed

  • Question

  • Hello,

    I am trying to create an orphaned instance of a recurring meeting on a room mailbox, where the mailbox is only invited to just specific instance instead of the whole series. This is one example of an orphaned instance when created through outlook client.

     

        <t:CalendarItem>
          <t:ItemId Id="AAMkADFkNGQ4ODRiLTEwZTAtNDg4NS05MmQ5LWJkMjc4NTJlMzJlNwBGAAAAAABhGghgpRt/SqC1WjrU+guPBwABvxHbGVKcQZrMVQo83/aTAAAA1FbkAAABvxHbGVKcQZrMVQo83/aTAAAFWn1BAAA=" ChangeKey="DwAAABYAAAABvxHbGVKcQZrMVQo83/aTAAAFWo3q"/>
          <t:ItemClass>IPM.Appointment</t:ItemClass>
          <t:Subject>DAILY 3</t:Subject>
          <t:UID>040000008200E00074C5B7101A82E00800000000D1BA234617A4CC01000000000000000010000000D902BC6DDA7FA44DB36DBA5E8B602BC7</t:UID>
          <t:RecurrenceId>2011-11-17T17:30:00Z</t:RecurrenceId>
          <t:DateTimeStamp>2011-11-16T04:32:21Z</t:DateTimeStamp>
          <t:Start>2011-11-17T20:00:00Z</t:Start>
          <t:End>2011-11-17T21: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>Ridwan Tan</t:Name>
              <t:EmailAddress>ridtan@tpmssched.com</t:EmailAddress>
              <t:RoutingType>SMTP</t:RoutingType>
            </t:Mailbox>
          </t:Organizer>
          <t:TimeZone>(UTC-08:00) Pacific Time (US &amp; Canada)</t:TimeZone>
        </t:CalendarItem>

    I am trying to create that programmatically, but I run into issues "Set action is invalid for property" if I try to set CalendarInstanceType, isRecurring or RecurrenceID. For example, this is what I am trying to set

        <typ:CalendarItem>
          <typ:ItemClass>IPM.Appointment</typ:ItemClass>
          <typ:Subject>Orphan Meeting Test</typ:Subject>
          <typ:Importance>Normal</typ:Importance>
          <typ:UID>RIDWANRSVN1321419509493</typ:UID>
          <typ:RecurrenceId>2011-11-16T05:00:00.000Z</typ:RecurrenceId>
          <typ:Start>2011-11-16T05:00:00.000Z</typ:Start>
          <typ:End>2011-11-16T05:05:00.000Z</typ:End>
          <typ:IsRecurring>true</typ:IsRecurring>
          <typ:CalendarItemType>Single</typ:CalendarItemType>
        </typ:CalendarItem>

    I received the following error:

       <m:CreateItemResponseMessage ResponseClass="Error">
          <m:MessageText>Set action is invalid for property.</m:MessageText>
          <m:ResponseCode>ErrorInvalidPropertySet</m:ResponseCode>
          <m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
          <m:MessageXml>
            <t:FieldURI FieldURI="calendar:RecurrenceId"/>
          </m:MessageXml>
          <m:Items/>
        </m:CreateItemResponseMessage>

    I read that RecurrenceId,IsRecurring and CalendarInstanceType are read only attribute., if I don't specify them, this data works

      <typ:CalendarItem>
          <typ:ItemClass>IPM.Appointment</typ:ItemClass>
          <typ:Subject>Orphan Meeting Test</typ:Subject>
          <typ:Importance>Normal</typ:Importance>
          <typ:UID>RIDWANRSVN1321419509493</typ:UID>
          <typ:Start>2011-11-16T05:00:00.000Z</typ:Start>
          <typ:End>2011-11-16T05:05:00.000Z</typ:End>
        </typ:CalendarItem>

    but this is creating a single meeting, and not an oprhaned exception that I want.

    What attribute do I set to indicate that this is an orphaned exception of a recurring meeting?

     

    Regards,

     

    Ridwan

     

     

    Wednesday, November 16, 2011 5:12 AM