Edit

Share via


Develop Outlook add-ins for the new Outlook on Windows

The new Outlook on Windows desktop client unifies the Windows and web codebases to create a more consistent Outlook experience for users and administrators. Its modern and simplified interface has added capabilities and aims to improve productivity, organization, and collaboration for users. More importantly, the new Outlook on Windows supports Outlook web add-ins, so that you can continue to extend Outlook's functionality.

Impact on VSTO and COM add-ins

The new Outlook on Windows aims to unify the extensibility experience across all Outlook platforms. To provide a more reliable and stable add-in experience, VSTO and COM add-ins aren't supported in the new Outlook on Windows. To ensure your add-in continues to work in the new Outlook on Windows, you must migrate your VSTO or COM add-in to an Outlook web add-in. Migrating to an Outlook web add-in not only enables compatibility with the new Outlook on Windows, it also makes your solution available to users on other platforms, such as Outlook on Mac, on mobile, or on the web.

To help get you started on the migration process, review the following guidance.

Note

VSTO and COM add-ins are still supported in classic Outlook on Windows.

Supported scenarios in Outlook web add-ins

The development of the Outlook JavaScript API used by Outlook web add-ins is focused on closing the gap on scenarios that are only supported by VSTO and COM add-in solutions. This way, users who transition to the Outlook web add-in can continue to have a seamless experience.

The following table identifies key Outlook scenarios and their support status in a web add-in. This table will be updated as additional scenarios are supported. Periodically check this section as you plan to migrate your VSTO or COM add-in.

Tip

As we continue to update the table of supported scenarios, if you want to view the recent changes made, select Edit This Document (pencil icon) from the top right corner of the article, then select History.

To learn more about Outlook add-in features that are in preview, see Outlook add-in API preview requirement set.

Scenario Description Support status in Outlook web add-ins Related features and samples
Spam email reporting and education Enable users to report unsolicited and potentially unsafe messages and learn how to identify these messages. Supported.
Online meetings Enable users to create and join online meetings. Supported.
Meeting enhancements Provide additional services for users when they schedule meetings, such as location selection, catering services, and room lighting and temperature adjustments. Supported.
Online signatures Automatically add themed signatures to messages and appointments. Supported.
Customer relationship management (CRM) and tracking services Enable users to send and retrieve information from their CRM system to track communications with existing and potential customers. Supported.
Content reuse Enable users to transfer and retrieve text and other content types from partner systems. Supported.
Mail item transformation Enable users to transform mail items into other formats. Supported.
Project management Enable users to create and track project work items from partner systems. Supported.
Attachment management Enable users to import or export attachments from partner locations. Supported.
Message encryption Enable users to encrypt and decrypt messages. Partially supported. Essential features are yet to be addressed to create a similar experience to VSTO or COM add-ins.
Data loss prevention Prevent users from forwarding mail items that contain highly sensitive information. Supported.
Mail item classification Enable users to identify and classify messages that contain sensitive information. Partially supported. Essential features are yet to be addressed to create a similar experience to VSTO or COM add-ins.
Data sync service Enable bidirectional synchronization of mail items with partner systems. Partially supported. Essential features are yet to be addressed to create a similar experience to VSTO or COM add-ins.
Proofing mail items Provide users with real-time proofreading assistance as they compose messages. Not currently supported. Not available

There are various possibilities for extending the Outlook functionality through add-ins. If your VSTO or COM add-in solution doesn't quite fit any of the scenarios in the table, complete the survey to share your scenario.

Support for classic Outlook on Windows

Classic Outlook on Windows with a Microsoft 365 subscription or a retail perpetual version of Office 2016 or later will continue to support the development of new and existing Outlook web add-ins. Additionally, it will continue to receive releases of the latest Outlook add-in features.

Test your add-in in the new Outlook on Windows

Test your Outlook web add-in in the new Outlook on Windows today! To switch to the new Outlook on Windows, you must meet the following requirements.

  • Have a Microsoft 365 work or school account connected to Exchange Online. The new client doesn't currently support on-premises, hybrid, or sovereign Exchange accounts.

    Note

    While you can add non-Microsoft mail accounts, such as Gmail, to the new Outlook on Windows, you can only use Outlook add-ins with a Microsoft account.

  • Have a minimum OS installation of Windows 10 Version 1809 (Build 17763).

To help you install and set up the Outlook desktop client, see Getting started with the new Outlook for Windows.

For guidance on how to sideload your add-in, see Sideload Outlook add-ins for testing.

Tip

If you're moving from the classic Outlook client on Windows to the new Outlook client, note that the location of add-ins is different. While add-ins are accessed from the ribbon or app bar in the classic Outlook client, access to add-ins in the new Outlook client depends on whether you're reading or composing a mail item. To learn more, see Use add-ins in Outlook.

Debug your add-in

To debug an add-in installed in the new Outlook on Windows desktop client, perform the following:

  1. Close the new Outlook on Windows client if you already have it open.

  2. Then, in a command prompt, run the following command to open the new Outlook on Windows client and an instance of the Microsoft Edge DevTools.

    olk.exe --devtools
    

    Tip

    After running the command, the DevTools window stays open, so that you can debug an add-in's task pane as you open and close it. If you close the DevTools window, you must close your Outlook client first before running olk.exe --devtools again.

  3. Sideload the add-in to Outlook on the web.

  4. Use Microsoft Edge DevTools to debug your add-in.

Add-in availability when offline

When you turn on the offline setting in the new Outlook on Windows, you can continue to access your emails and calendar if you lose internet connection. While some functionalities remain available, Outlook add-ins and the Microsoft 365 and Copilot store aren't available when offline. The following table describes the behavior of certain types of add-ins when your machine is offline or has an intermittent connection.

Scenario Task pane and function command add-ins Event-based add-ins
No internet connection when Outlook is launched Installed add-ins don't appear on the ribbon or action bar. Because Outlook can't determine which add-ins are installed while offline, event-based add-ins can't activate when the event they handle occurs.

In this scenario, to ensure that Smart Alerts add-ins still check mail items for compliance before they're sent, administrators can configure the OnSendAddinsEnabled mailbox policy in Exchange Online PowerShell. When configured, outgoing items are saved to the Drafts folder instead of the Outbox folder to prevent them from being automatically sent when the machine reconnects to the internet. For more information, see the "Offline when Outlook launches" section of Handle OnMessageSend and OnAppointmentSend events in your Outlook add-in with Smart Alerts.
A connection is established after launching Outlook while offline Installed add-ins appear on the ribbon and action bar. Outlook will be able to identify which event-based add-ins are installed. Installed add-ins can then activate when the event they handle occurs.

When you select Send on a mail item that was blocked by the OnSendAddinsEnabled mailbox policy, the Smart Alerts add-in runs to check for compliance.
Machine loses connection while Outlook is in use If you lose connection while using Outlook, your installed add-ins won't run. A dialog or notification is shown to notify that you're offline. If you lose connection when an event occurs, the behavior differs depending on the type of event-based add-in.
A connection is reestablished Installed add-ins can run operations again. Installed add-ins resume handling events when they occur. Mail items that were moved to the Outbox folder are sent. When items in the Drafts folder are sent, Smart Alerts add-ins are activated to ensure that the mail items are compliant.

Development experience feedback

As you test your Outlook web add-in in the new Outlook on Windows, share feedback on your experience with the developer community through GitHub.

See also