determing folder path

J

James

We have a public folder called 'Sales Contacts' which contains a
customized contact form. We want to try and identify people who are
copying these contacts to their local contacts folder.

Right now I have it coded to return the current folder name. So if
it's in the public folder it returns 'Sales Contacts', if it's in the
local contacts folder it returns 'Contacts'.

As someone could conceivable create a new folder locally and also call
it 'Sales Contacts' I need to be able to determine the whole path the
the current folder. ie. Public Folders\All Public Folders\Sales
Contacts or Outlook Today\Contacts\My Sales Contacts

Returning the parent property for both just states 'Outlook'. Running
Exch 5.5, sp4 and Outlook 2000, sp3.

Any help appreciated.

J.
 
K

Ken Slovak - [MVP - Outlook]

In Outlook 2000 MAPIFolder.Parent.Name returns the name of the parent
folder. If MyContacts is the MAPIFolder object and is a subfolder of
Contacts then MAPIFolder.Parent.Name would be "Contacts". The same applies
even in public folders.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top