PRB: Accepting Meeting Request Loses Categories Information

ID: Q196509

The information in this article applies to:

SYMPTOMS

When you use the AutoAccept sample script (or any code that uses CDO) 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

Additional query words:
Keywords          : kbcode kbCDO120 kbCDO121 kbMsg 
Version           : WINDOWS:1.2,1.21
Issue type        : kbprb

Last Reviewed: December 2, 1998