J
Jason
Hi,
I updating an office addin that supports both Office 2003 and 2007. I
understand 2007 outlook interop now includes the GlobalAppointmentID so I am
NOT asking for help with 2007, I have that handled.. I am working on the 2003
assembly and have had to resort to some MAPI code for grabing the
GlobalAppointmentID from a created appointment. This works great and again,
all is well.
Now I am trying to Edit an existing appointment and need to locate the
calendar item using the Global ID. As it's not available in the interop I am
trying to use MAPI.
The following Code gets executed. MeetingUniqueID is a string and contains
the GlobalAppointmentID
Dim oMapiSession As New MAPI.Session
oMapiSession.Logon("", "", False, False)
Dim oFolder As MAPI.Folder =
CType(oMapiSession.GetDefaultFolder(MAPI.CdoDefaultFolderTypes.CdoDefaultFolderCalendar), MAPI.Folder)
Dim oMessages As MAPI.Messages = CType(oFolder.Messages, MAPI.Messages)
Dim oFilter As MAPI.MessageFilter = CType(oMessages.Filter,
MAPI.MessageFilter)
Dim oFields As MAPI.Fields = CType(oFilter.Fields, MAPI.Fields)
oFields.Add("GlobalAppointmentID", MAPI.CdoFieldType.CdoString,
MeetingUniqueID)
When I execute getFirst() on the messages I receive a MAPI_TOO_COMPLEX
error. Can you tell me how I can use the GlobalAppointmentID in a filter?? I
absolutely do not want to crawl through 1000's of calendar items to find the
one I want..
I'm hoping you can help??
Thanks
Jason
I updating an office addin that supports both Office 2003 and 2007. I
understand 2007 outlook interop now includes the GlobalAppointmentID so I am
NOT asking for help with 2007, I have that handled.. I am working on the 2003
assembly and have had to resort to some MAPI code for grabing the
GlobalAppointmentID from a created appointment. This works great and again,
all is well.
Now I am trying to Edit an existing appointment and need to locate the
calendar item using the Global ID. As it's not available in the interop I am
trying to use MAPI.
The following Code gets executed. MeetingUniqueID is a string and contains
the GlobalAppointmentID
Dim oMapiSession As New MAPI.Session
oMapiSession.Logon("", "", False, False)
Dim oFolder As MAPI.Folder =
CType(oMapiSession.GetDefaultFolder(MAPI.CdoDefaultFolderTypes.CdoDefaultFolderCalendar), MAPI.Folder)
Dim oMessages As MAPI.Messages = CType(oFolder.Messages, MAPI.Messages)
Dim oFilter As MAPI.MessageFilter = CType(oMessages.Filter,
MAPI.MessageFilter)
Dim oFields As MAPI.Fields = CType(oFilter.Fields, MAPI.Fields)
oFields.Add("GlobalAppointmentID", MAPI.CdoFieldType.CdoString,
MeetingUniqueID)
When I execute getFirst() on the messages I receive a MAPI_TOO_COMPLEX
error. Can you tell me how I can use the GlobalAppointmentID in a filter?? I
absolutely do not want to crawl through 1000's of calendar items to find the
one I want..
I'm hoping you can help??
Thanks
Jason