Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Long term IDs from PR_PARENT_ENTRYID

Geek News

Long term IDs from PR_PARENT_ENTRYID
adam[ at ]viratech.com 9/2/2006 9:08:45 PM
The PR_PARENT_ENTRYID value of a mail item when using a MAPITable seems
to be its short term ID. Is there a PR_LONGTERM_ENTRYID_FROM_TABLE
equivalent for the parent entry ID?

This problem only seems to be an issue for Exchange stores.

Strangely, OutlookSpy shows a long term entry ID under
PR_PARENT_ENTRYID for mail items. So I'm getting different values for
PR_PARENT_ENTRYID from OutlookSpy and a MAPITable.

For example, here is a PR_PARENT_ENTRYID from OutlookSpy:

00000000553D90F710ABF34FAF463CA7E9775B5401005CA9A01E1C105C44B3650616ED91E83A00000863EB0C0000

and here is the same property accessed via a MAPITable:

EF000000553D90F710ABF34FAF463CA7E9775B5482210000.

There also does not seem to be a property of the parent folder whose
value is equal to the entry ID from the MAPITable.


Is there any way that I can get the long term entry ID for a mail item
via MAPITable? Any hints about what is going on?

Thanks,
Adam

Re: Long term IDs from PR_PARENT_ENTRYID
adam[ at ]viratech.com 9/3/2006 10:36:33 PM
[Quoted Text]
> Is there any way that I can get the long term entry ID for a mail item
> via MAPITable? Any hints about what is going on?

Sorry, I meant "...the long term entry ID for a mail item's parent via
MAPITable?"

Thanks.

Re: Long term IDs from PR_PARENT_ENTRYID
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 9/4/2006 4:55:53 AM
Why would you want to retrieve the parent entry id through the contents or
the hierarchy table? By definition, all items in the table will have the
same parent entry id, which you can retrieve from the parent folder; it will
be just PR_ENTRYID

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

<adam[ at ]viratech.com> wrote in message
news:1157231325.520751.319240[ at ]b28g2000cwb.googlegroups.com...
[Quoted Text]
> The PR_PARENT_ENTRYID value of a mail item when using a MAPITable seems
> to be its short term ID. Is there a PR_LONGTERM_ENTRYID_FROM_TABLE
> equivalent for the parent entry ID?
>
> This problem only seems to be an issue for Exchange stores.
>
> Strangely, OutlookSpy shows a long term entry ID under
> PR_PARENT_ENTRYID for mail items. So I'm getting different values for
> PR_PARENT_ENTRYID from OutlookSpy and a MAPITable.
>
> For example, here is a PR_PARENT_ENTRYID from OutlookSpy:
>
> 00000000553D90F710ABF34FAF463CA7E9775B5401005CA9A01E1C105C44B3650616ED91E83A00000863EB0C0000
>
> and here is the same property accessed via a MAPITable:
>
> EF000000553D90F710ABF34FAF463CA7E9775B5482210000.
>
> There also does not seem to be a property of the parent folder whose
> value is equal to the entry ID from the MAPITable.
>
>
> Is there any way that I can get the long term entry ID for a mail item
> via MAPITable? Any hints about what is going on?
>
> Thanks,
> Adam
>


Re: Long term IDs from PR_PARENT_ENTRYID
adam[ at ]viratech.com 9/4/2006 5:02:53 AM
Of course! How obvious!

14 hour days can make you miss those things...thanks much.


Dmitry Streblechenko wrote:
[Quoted Text]
> Why would you want to retrieve the parent entry id through the contents or
> the hierarchy table? By definition, all items in the table will have the
> same parent entry id, which you can retrieve from the parent folder; it will
> be just PR_ENTRYID
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> <adam[ at ]viratech.com> wrote in message
> news:1157231325.520751.319240[ at ]b28g2000cwb.googlegroups.com...
> > The PR_PARENT_ENTRYID value of a mail item when using a MAPITable seems
> > to be its short term ID. Is there a PR_LONGTERM_ENTRYID_FROM_TABLE
> > equivalent for the parent entry ID?
> >
> > This problem only seems to be an issue for Exchange stores.
> >
> > Strangely, OutlookSpy shows a long term entry ID under
> > PR_PARENT_ENTRYID for mail items. So I'm getting different values for
> > PR_PARENT_ENTRYID from OutlookSpy and a MAPITable.
> >
> > For example, here is a PR_PARENT_ENTRYID from OutlookSpy:
> >
> > 00000000553D90F710ABF34FAF463CA7E9775B5401005CA9A01E1C105C44B3650616ED91E83A00000863EB0C0000
> >
> > and here is the same property accessed via a MAPITable:
> >
> > EF000000553D90F710ABF34FAF463CA7E9775B5482210000.
> >
> > There also does not seem to be a property of the parent folder whose
> > value is equal to the entry ID from the MAPITable.
> >
> >
> > Is there any way that I can get the long term entry ID for a mail item
> > via MAPITable? Any hints about what is going on?
> >
> > Thanks,
> > Adam
> >

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net