Extract AppointmentItem or TaskItem ID

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,
Does AppointmentItem or TaskItem have a property like an unique identifier
for that particular Item? I would like to store the Item ID along with the
details in a database I have created and I would like to be able to relate
back to that particular Item with that ID when I need to. Thanks in advance!
 
You're looking for the .EntryId property, HOWEVER if the item is moved
to a different FOLDER, the .EntryId may change. I actually have a Access
DB that pretty much does the same thing. One of the controls that I have
in place is to store the record ID from Access in the AppointmentItem in
a User Definded property. Typically when I need to change the AI, I use
the store value of the EntryID from the DB to access the item (using
..GetItemFromId(?)). However, if something should happen where the
EntryID is deleted from the DB, I can still find the AI by looping
through all of the AI's and inspecting the User Defined property that
stores the Record ID. Additionally, I've got a bit of code that counts
the number of instances where a AI has the record ID to determine if
multiple AI's have been created for the same record.
 
One other item...

If I need to change the AppointmentItem due to change in one or more of
the Access field values, instead of trying to figure out which field(s)
have changed, I simply overwrite all information in the AI.
 
On Wed, 3 Aug 2005 23:08:02 -0700 juzion wrote:

You can use the item´s EntryID and its folder´s StoreID. The EntryID will
identify the item as long as it isn´t being moved into another store.

The most reliably way would be to use your own GUID, stored in a user
defined property.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Dear all,
Does AppointmentItem or TaskItem have a property like an unique identifier
for that particular Item? I would like to store the Item ID along with the
details in a database I have created and I would like to be able to relate
back to that particular Item with that ID when I need to. Thanks in
advance!
 
Note that entry IDs from meeting request appointments will not be persistent after Outlook 2003 SP2 comes out -- see http://support.microsoft.com/?id=899919

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top