PRB: GetFirst/GetLast methods of CDO Cannot Filter Appointments

ID: Q183096


The information in this article applies to:
  • Collaboration Data Objects (CDO), versions 1.0a, 1.1, 1.2, 1.21


SYMPTOMS

When accessing a Collaboration Data Objects (CDO) 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.


REFERENCES

For information about Collaboration Data Objects versus Active Messaging, please see the following article in the Microsoft Knowledge Base:

Q176916 INFO: Active Messaging and Collaboration Data Objects (CDO)

Additional query words: OleMsg ActMsg

Keywords : kbCDO100a kbCDO110 kbCDO120 kbCDO121 kbGrpMsg
Version : WINDOWS:1.0a,1.1,1.2,1.21
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: November 9, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.