none
Extending Outlook 2013 to multiple instances and profiles under the same user RRS feed

  • Question

  • Hello,

    I understand that Outlook 2013 will only run one profile under a logged in user account. can i use Outlook Primary Interop Assembly to add that ability to outlook 2013 ?

    Regards

    Thursday, February 5, 2015 7:00 AM

Answers

  • Hello,

    Only one instance of Outlook can be run. You can choose the profile programmatically using the Logon method of the Namespace class. Here is what MSDN states:

    Use the Logon method only to log on to a specific profile when Outlook is not already running. This is because only one Outlook process can run at a time, and that Outlook process uses only one profile and supports only one MAPI session. When users start Outlook a second time, that instance of Outlook runs within the same Outlook process, does not create a new process, and uses the same profile.

    If Outlook is already running, using this method does not create a new Outlook session or change the current profile to a different one.

    You may find the How to automate Outlook from another program article helpful.

    Thursday, February 5, 2015 7:12 AM

All replies

  • Hello,

    Only one instance of Outlook can be run. You can choose the profile programmatically using the Logon method of the Namespace class. Here is what MSDN states:

    Use the Logon method only to log on to a specific profile when Outlook is not already running. This is because only one Outlook process can run at a time, and that Outlook process uses only one profile and supports only one MAPI session. When users start Outlook a second time, that instance of Outlook runs within the same Outlook process, does not create a new process, and uses the same profile.

    If Outlook is already running, using this method does not create a new Outlook session or change the current profile to a different one.

    You may find the How to automate Outlook from another program article helpful.

    Thursday, February 5, 2015 7:12 AM
  • Hi Eugene,

    Is there any way to create multiple Outlook processes ?

    Thursday, February 5, 2015 8:56 AM
  • Nope. But you can use the low-level API - Extended MAPI on which Outlook is based. See MAPI Sessions for more information.
    Thursday, February 5, 2015 12:48 PM
  • To back off a little bit, why do you need multiple sessions?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Thursday, February 5, 2015 3:19 PM