Using "Outlook:// Protocol", Open Current Instance of Outlook, not New Instance

1

Background

I'm building an Excel webapp using the Javascript API for Office, and in the webapp I have links to MS Outlook using the Outlook Protocol. Example link:

<a title="outlook:Inbox/Projects/Current/ExampleProject" href="outlook:Inbox/Projects/Current/ExampleProject" target="_blank">ExampleProject</a>

I am running Outlook 2013, in which the protocol has officially been depreciated. It still works when one adds a registry key, though:

enter image description here

This opens a new instance of Outlook 2013 when the link is clicked on.

Question

What I'd like it to do is to being the currently running instance up and change the view to the correct folder, instead of always starting a new instance. Is that possible?


Edit

G-Man was able to solve the multiple instance problem by suggesting /recycle in the Registry key. Now the only issue I have is that when I click the link it opens an instance of IE11 before changing the Outlook view, and that IE instance doesn't close afterwards.

Edit 2

To bypass the extra IE instance, I just needed to remove the target="_blank". And we have success!

Andy Mercer

Posted 2014-10-30T21:57:01.380

Reputation: 253

1Have you tried looking at additional command-line options for Outlook (to use in the command in the Registry string), such as /recycle? – G-Man Says 'Reinstate Monica' – 2014-10-30T22:10:13.933

I haven't. The command line is an area in which I'm very inexperienced. – Andy Mercer – 2014-10-30T22:14:38.237

That's it! I placed /recycle in front of /select and it works! Brilliant! – Andy Mercer – 2014-10-30T22:20:35.277

Answers

2

Edit the Outlook command in the Registry string to include /recycle (before /select).  Microsoft’s Command-line switches for Outlook 2013 page defines /recycle as signifying “Starts Outlook by using an existing Outlook window, if one exists.”

G-Man Says 'Reinstate Monica'

Posted 2014-10-30T21:57:01.380

Reputation: 6 509

You beat me to it! One note however, if using the Office 365 version of Office 2013, note that Office is installed in a different location by default so you need to alter your registry entry to match. – Julian Knight – 2014-10-30T22:43:30.670

Yes im not sure how exactly im going to handle that part. I might write up a javascript which output the correct regedit file when given the user's installation location – Andy Mercer – 2014-10-30T22:46:46.823