PRB: Accepting Meeting Request Loses Categories Information (196509)



The information in this article applies to:

  • Collaboration Data Objects (CDO) 1.2
  • Collaboration Data Objects (CDO) 1.21

This article was previously published under Q196509

SYMPTOMS

When you programmatically use Collaboration Data Objects (1.2, 1.21) to accept meeting requests, the AppointmentItem that is saved to the attendee's calendar does not retain the value in the Categories field.

CAUSE

Not all of the fields are copied over when a meeting request is accepted programmatically.

RESOLUTION

Set the Categories field of the AppointmentItem programmatically after you accept the meeting request. The following sample code demonstrates how to do this:

Sample Code

   ' The following code assumes that objMeeting is a valid meeting request
   ' object, that is, objMeeting.MeetingType = CdoMeetingRequest.

   Set objMeetingResponse = objMeeting.Respond(CdoResponseAccepted)
   objMeetingResponse.Text = "OK, I'll be there"
   objMeetingResponse.Send

   Set objAppointmentItem = objMeeting.GetAssociatedAppointment
   objAppointmentItem.Categories = objMeeting.Categories
   objAppointmentItem.Update
				

Modification Type:MinorLast Reviewed:3/4/2004
Keywords:kbcode kbMsg kbprb KB196509