A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

unique ID of Contact/task/calendar items



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 4th 06, 04:31 PM posted to microsoft.public.outlook.program_vba
Virda
external usenet poster
 
Posts: 13
Default unique ID of Contact/task/calendar items


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
  #2  
Old October 4th 06, 07:45 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default unique ID of Contact/task/calendar items

"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



  #3  
Old October 5th 06, 12:54 PM posted to microsoft.public.outlook.program_vba
Virda
external usenet poster
 
Posts: 13
Default unique ID of Contact/task/calendar items


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




  #4  
Old October 5th 06, 06:49 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default unique ID of Contact/task/calendar items

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






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar items - linked contact? Patrick Outlook - Calandaring 0 July 13th 06 09:09 PM
Links between Contact and Task items Warren Outlook - Using Contacts 1 June 16th 06 03:26 PM
Obtaining unique ID for contact? miner2049er Outlook - Using Contacts 6 April 29th 06 07:43 PM
Lost calendar & Task items in Outlook 2000 Bett Outlook - General Queries 1 February 20th 06 11:54 PM
Pulling in unique items in a drop down box Richard Edwards Outlook - Using Forms 1 January 20th 06 03:33 PM


All times are GMT +1. The time now is 09:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.