CoNetrix Blog

Public Folder Names Have Changed in Outlook 2010

Posted on October 6, 2010 10:28 AM

If you have any programs that use Outlook to script objects in Exchange, you need to  be aware that the folder name for root public folder changed with Outlook 2010.  In previous versions of Outlook the root public folder is named “\Public Folders”.  Starting with Outlook 2010 the root public folder is named “\Public Folders – test@example.com” where test@example.com is the connected user’s primary email address.  Fortunately you can use the GetDefaultFolder() method on the Outlook NameSpace object to get common folders without hard coding the name of it.  For example you could call GetDefaultFolder(olPublicFoldersAllPublicFolders) to get the "All Public Folders" folder in the Exchange Public Folders store if you're using Exchange.

Related Posts

Comments

Comment by Bond, James Bond

January 6, 2011 5:34 AM

not quite true, my public folders root name is
Public Folders - James Bond
which I suppose is a display name or some other property from AD

Comment by Brady

January 6, 2011 8:16 AM

It changed to “\Public Folders – test@example.com” for me too, but I suppose it could be an Exchange setting. However, using the olPublicFoldersAllPublicFolders constant to access the root folder instead of just passing in a string that might change seems like a good idea anyway. It might prevent your script from breaking in the future.

Comment by Jamey

March 2, 2011 2:45 PM

I'm having trouble with this, as mentioned above some of my users have email addresses and my account shows just my name. Why are they different and could someone give an example of a vbscript using the olPublicFoldersAllPublicFolders constant if it will resolve this issue? Thanks!

Add Comment





[b][/b] - [i][/i] - [u][/u]- [quote][/quote]