General information
Category:
COM/DCOM and OLE Automation
Title:
Finding appointment by EntryID
Environment versions
Network:
Windows 2000 Server
Hello,
I'm using the following code to find an appointment in Microsoft Outlook based on an EntryID I stored in the past.
-------------------------------------------------
LOCAL loOutlook as "Outlook.Application"
loOutlook = CREATEOBJECT("Outlook.Application")
loNameSpace = loOutlook.GetNamespace("MAPI")
loRecipient = loNameSpace.CreateRecipient("AnyUserName")
loRecipient.Resolve()
IF loRecipient.Resolved = .F.
MessageBox("Account not accessable !")
ENDIF
lcCurrentUserName = loRecipient.Name
lcEntryID = "0000000054BC51CB44046E4E996642DEF62A3F430700D5E163..."
loFolder = loNameSpace.GetSharedDefaultFolder(loRecipient,9)
loItems = loFolder.Items
oMyItem = loItems.GetItemFromId( lcEntryID )
IF VARTYPE(oMyItem) = "O"
oMyItem.Display()
ENDIF
----------------------------------
Running this code I get an OLE error code 0x80020006 : Unknown COM status code. Does anyone knows why ?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only