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:00000000326A217A1D5B4F4882518F832F76DEC144022000
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
https://support.microsoft.com/kb/281350/en-us3
(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
https://support.microsoft.com/kb/179681
Outlook:URL Protocol is Not Functional in Outlook 2007
https://support.microsoft.com/kb/968416
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
https://msdn.microsoft.com/en-us/library/Aa767914.aspx
Well that’s it for now on Outlook Hyperlinks. Happy Coding!
Comments
Anonymous
November 12, 2014
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? Regards, MartinAnonymous
November 18, 2014
Hi Martin, Please follow the link below to understand how to write Macro. msdn.microsoft.com/.../ee814736%28v=office.14%29.aspx 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 Regards, Pallav pallav.sharma@hotmail.com