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
"Virda" wrote in message
...
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.
"Dmitry Streblechenko" wrote:
"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
"Virda" wrote in message
...
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