Outlook Hyperlinks for Public folder Items in Outlook 2010 does not work?

Sometimes we require creating hyperlinks for Items in
Mailbox. Rather than referring to item by its name, I would suggest you to use
EntryID to create hyperlinks. So the URL will look like following:


Outlook :< ENTRYID>

Now what if you creating hyperlinks for Items inside Public
Folder in Outlook 2010? Above hyperlink will throw an exception, if Public
folder is not initialized. Due to performance issues, Public folders are not
initialized when Outlook starts.

OL2000: Link to Item in Public Folder Does Not Work
(Article is applicable for Outlook 2010 also.)

So, how do I create link for items in Public folder in Outlook 2010?

You could create the hyperlink for Items inside Public folder using Entry
ID of item and you could create COM Add-in or write VBA script to initialize
the public folder when Outlook Starts. Once the Public folder is initialized,
items inside Public folder could be accessed using hyperlinks. Following two
lines of code would initialize the public folder!

Outlook.NameSpace objNs = Application.GetNamespace("MAPI");
Outlook.MAPIFolder folder =objNs.GetDefaultFolder(Outlook.OlDefaultFolders.olPublicFoldersAllPublicFolders);


Following are few useful links for understanding Outlook Hyperlinks:

OL98: Using Hyperlinks to Access Outlook Folders and Items

Outlook:URL Protocol is Not Functional in Outlook 2007

Note : For Outlook 2007 and Outlook 2010 to make Outlook hyperlink work, we could use a workaround by registering the url in registry.
Read through the link below to understand how to register custom URL and what the security concerns are.

Registering an Application to a URL Protocol

Well that’s it for now on Outlook Hyperlinks. Happy Coding!

Comments (2)
  1. Martin says:

    Hello Pallav, thank you very much for this post.  I really would like

    to take advantage of it, since otherwise all my links to contacts

    in the public folder won‘t work as expected, but since I am not a

    programmer I am missing more details.  Where do I put this code?  Are

    this 2 lines everything I need or should they be sourrounded by

    something more?



  2. Pallav [EX-MSFT] says:

    Hi Martin,

    Please follow the link below to understand how to write Macro.


    you can place the code from the Post above in the sub function and  and it should work.

    I also would like to let you know that i am not Microsoft Employee now. If you need any further help on this, feel free to reach out to  Outlook forum:  answers.microsoft.com/…/outlook




Comments are closed.

Skip to main content