Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

EntryId changes when Mailitem is sent!! How can I identify an item in Outlook!! HELP

696 views
Skip to first unread message

Frank van der Linden

unread,
Jan 23, 2001, 9:08:48 AM1/23/01
to
LS

I thought the entryid of the mailitem was unique.
But it changes everything the item moves to another folder.

How can I uniquely identify an item in the MAPI?????

Is there a property that I can use?

TIA FRANK


Phil Seeman

unread,
Jan 24, 2001, 12:52:17 AM1/24/01
to
Interestingly, the EntryID doesn't change when an item is moved via the UI
(i.e. the user drags and drops it from one folder to another), but does
change (as you've noted) when the move occurs programmatically.

There's no good field to use to absolutely uniquely identify an item if it
gets moved. If you can, what we usually do is write some unique string to
the Mileage or BillingInformation field, since these fields are always
present in every item type (except perhaps StickyNotes, I don't recall);
then use the .Find method to locate based on that string.

--
Phil Seeman,
TeamScope Software
http://www.teamscope.com


"Frank van der Linden" <fvdl...@innophase.nl> wrote in message
news:94k38v$fvf$1...@nereid.worldonline.nl...

Frank van der Linden

unread,
Jan 24, 2001, 2:06:47 AM1/24/01
to
Thenks!
I've tried it and i can use it!!
But I think it is a 'not so neat' solution!
If someone is using the Mileage or BillingInformation field in their items,
I have a problem identifying the items.

What's your experience with the UserProperty object?

Maybe I can created a user field "ExternId" to UserProperties collection!
Let me know!

Greetings Frank

"Phil Seeman" <ph...@teamscope.com> wrote in message
news:t6srcaq...@corp.supernews.com...

Phil Seeman

unread,
Jan 24, 2001, 11:47:23 AM1/24/01
to
You're correct that theoretically, someone else could be using those fields.
But since you mentioned in your original post that you are talking about
Mailitems, then you're probably pretty safe, as those fields are not exposed
to the UI in a Mailitem form.

The issue with using UserProperties to add a user-defined fields is that it
will "one-off" the item (see
http://support.microsoft.com/support/kb/articles/Q181/2/66.ASP if you need
more info on that), which is not a good thing. Without script code in the
item, you will not get the "Enable Macros" dialog, but I believe the form
definition will still be stored with the item and thus the item size will
grow much larger.

--
Phil Seeman,
TeamScope Software
http://www.teamscope.com


"Frank van der Linden" <ne...@limetree.nl> wrote in message
news:94luus$6cp$1...@nereid.worldonline.nl...

0 new messages