J
Johannes Franke
Hello all,
I'm desperately looking for a solution on how to show contacts (not
AddressEntries) via CDO session. I have the EntryID and StoreID of the
contacts in a database. When trying to open the contacts with
Application.GetNameSpace("MAPI").GetItemFromID(EntryID, StoreID).Display
Outlook just returns that "the client operation has failed", giving me
different error codes every time, such as
DCD4010F, E514010F, ED54010F on trying to get items by StoreID + EntryID
E0F4010F, E934010F, F174010F on trying to get items with EntryID only
Getting the IDs from the contacts I can see in the folder is working though.
Using these IDs later for displaying as descibed above fails.
The alternative way I have implemented uses CDO and the
MAPI.Session.GetMessage function. Unfortunately, this also fails.
Error code 8004010F and Err.Description "MAPI -
[MAPI_E_NOT_FOUND(8004010F)]" is returned when using StoreID + EntryID
The same error code but Err.Description "the client operation has
failed. [Microsoft Exchange Server Information Store -
[MAPI_E_NOT_FOUND(8004010F)]" is returned when using EntryID only
Even if it didn't fail, I would still miss the function to display the
message object (a Details function is only implemented for MAPI.AddressEntry
as far as I know, but the contacts are just messages, right?)
Maybe the approach is all wrong. If Outlook fails to display the contact
item although it is in one of the user's Favourites folders, and Exchange
Cache Mode is active, something else may be out of order.
Thanks for any help!
Best regards,
Joe
I'm desperately looking for a solution on how to show contacts (not
AddressEntries) via CDO session. I have the EntryID and StoreID of the
contacts in a database. When trying to open the contacts with
Application.GetNameSpace("MAPI").GetItemFromID(EntryID, StoreID).Display
Outlook just returns that "the client operation has failed", giving me
different error codes every time, such as
DCD4010F, E514010F, ED54010F on trying to get items by StoreID + EntryID
E0F4010F, E934010F, F174010F on trying to get items with EntryID only
Getting the IDs from the contacts I can see in the folder is working though.
Using these IDs later for displaying as descibed above fails.
The alternative way I have implemented uses CDO and the
MAPI.Session.GetMessage function. Unfortunately, this also fails.
Error code 8004010F and Err.Description "MAPI -
[MAPI_E_NOT_FOUND(8004010F)]" is returned when using StoreID + EntryID
The same error code but Err.Description "the client operation has
failed. [Microsoft Exchange Server Information Store -
[MAPI_E_NOT_FOUND(8004010F)]" is returned when using EntryID only
Even if it didn't fail, I would still miss the function to display the
message object (a Details function is only implemented for MAPI.AddressEntry
as far as I know, but the contacts are just messages, right?)
Maybe the approach is all wrong. If Outlook fails to display the contact
item although it is in one of the user's Favourites folders, and Exchange
Cache Mode is active, something else may be out of order.
Thanks for any help!
Best regards,
Joe