PRB: CDO (1.x) GetFirst/GetLast methods Cannot Filter Appointments (183096)



The information in this article applies to:

  • Collaboration Data Objects (CDO) 1.0a
  • Collaboration Data Objects (CDO) 1.1
  • Collaboration Data Objects (CDO) 1.2
  • Collaboration Data Objects (CDO) 1.21

This article was previously published under Q183096

SYMPTOMS

When accessing a Collaboration Data Objects (1.x) Messages collection, messages of class "IPM.Appointment" will be included when using the GetFirst() or GetLast() methods with the filter parameter set to "IPM.Note".

MORE INFORMATION

Steps to Reproduce Behavior

   'This snippet assumes that you have logged on with a valid profile,
   'and that the Folder it points to will include a number of messages
   'of class IPM.Appointment in order to test the GetFirst(filter).
   '
   objSession.SetOption "CalendarStore", "Outlook"
   Set objCalendarFolder = _
     objsession.GetDefaultFolder (CdoDefaultFolderCalendar)


   Set objMessageColl = objCalendarFolder.Messages
   'Set filter condition of GetFirst to IPM.Note in order to get
   'the first message with a class of IPM.Note.
   Set objApptItem = objMessageColl.GetFirst("IPM.Note")
				
RESULT:

Examining the returned objects class property reveals that the GetFirst method with a filter set to return only messages of class IPM.Note in fact returns a message of class IPM.Appointment.

Modification Type:MajorLast Reviewed:6/6/2005
Keywords:kbMsg kbnofix kbprb KB183096