Knowledge Base

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

Article ID: 183096

Article Last Modified on 6/6/2005


APPLIES TO


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.

Keywords: kbnofix kbmsg kbprb KB183096