Discussion:
How to get folder path from IMapiFolder
(too old to reply)
scb
2009-08-12 21:13:38 UTC
Permalink
Hi All,

I'm trying to get the full Outlook folder path when I have a reference
to an IMapiFolder object. I don't see any obvious properties that
will give it to me easily.

My current solution is to build the folder path by getting a reference
to the parent folder through PR_PARENT_ENTRYID, and travel up the
hierarchy, using PR_DISPLAY_NAME for each folder. I know I've hit the
root IMAPIFolder when the current Entry ID is equal to the parent
Entry ID.

Any other solutions out there?

Thanks in advance.
Ken Slovak - [MVP - Outlook]
2009-08-12 21:48:59 UTC
Permalink
That's the usual way to do it.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
Post by scb
Hi All,
I'm trying to get the full Outlook folder path when I have a reference
to an IMapiFolder object. I don't see any obvious properties that
will give it to me easily.
My current solution is to build the folder path by getting a reference
to the parent folder through PR_PARENT_ENTRYID, and travel up the
hierarchy, using PR_DISPLAY_NAME for each folder. I know I've hit the
root IMAPIFolder when the current Entry ID is equal to the parent
Entry ID.
Any other solutions out there?
Thanks in advance.
scb
2009-08-13 17:13:19 UTC
Permalink
On Aug 12, 2:48 pm, "Ken Slovak - [MVP - Outlook]"
Post by Ken Slovak - [MVP - Outlook]
That's the usual way to do it.
--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm
Post by scb
Hi All,
I'm trying to get the full Outlook folder path when I have a reference
to an IMapiFolder object.  I don't see any obvious properties that
will give it to me easily.
My current solution is to build the folder path by getting a reference
to the parent folder through PR_PARENT_ENTRYID, and travel up the
hierarchy, using PR_DISPLAY_NAME for each folder.  I know I've hit the
root IMAPIFolder when the current Entry ID is equal to the parent
Entry ID.
Any other solutions out there?
Thanks in advance.
Okay, thanks Ken!

Loading...