Knowledge Base

PRB: Accepting Meeting Request Loses Categories Information

Article ID: 196509

Article Last Modified on 3/4/2004


APPLIES TO


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
				

Keywords: kbmsg kbprb kbcode KB196509