unique ID of Contact/task/calendar items

G

Guest

IS there ant unique id exist for contact/task/calendar items

I used combinely the entryId and storeID to create unique id .

When Iused function GetFolderFromID(storeid,entrid) to get the item, it
return the error message that item is not ready.

Does any body why this error message is being generated or what is the
unique id of outlook2003 items.

Is EntryId is enough for uniqueID??

Thanks i nadvance
 
D

Dmitry Streblechenko

"item is not ready"? Are you sure that's what the exact error message was?
Are you calling GetFolderFromID(storeid,entrid) for the same user and the
same MAPI profile that was used to retrieve and folder and store entry ids?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
G

Guest

At the time of contact add

ID = olContactFolder.StoreID + "___" + olContactItem.EntryID;

and then in nother differnet function, when I used the following piece of
code then following error message raised.
object theItem = Utility.obj_Outlook_NameSpace.GetItemFromID(
itemStoreID, itemEntryID);
The exact error message is

"Could not open the item. Try again."

Yes, I am usng the same user but don't know about Mapi profile.
 
D

Dmitry Streblechenko

GetItemFromID takes the item's entry id as teh first parameter amd the store
id as t he second (optional) parameter. Looks like you have them swapped.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top