Upgrade Teams application to work with Outlook and Office.com - OfficeDev/TeamsFx GitHub Wiki

[!NOTE] Currently, this feature is available in developer preview only.

Teams Toolkit helps you to upgrade Teams applications to work with Outlook and Office.com. To extend your Teams applications in Outlook and Office.com, the migration commands in Teams are as follows:

  1. Use the command Teams: Upgrade Teams manifest to support Outlook and Office apps to upgrade manifest to the latest version.

  2. Use the command Teams: Upgrade Teams JS SDK references to support Outlook and Office apps to upgrade TeamsJS SDK to the latest version.

teams-extended-in-outlook-and-office

[!NOTE] To extend your Teams application in Outlook and Office.com, upgrading manifest file is required. However, it's optional for you to upgrade the TeamsJS SDK, as the old version continues to work. [!IMPORTANT] If you have both TeamsFx and TeamsJS SDK packages in your Teams application and you have upgraded TeamsJS SDK to 2.0.0-beta.1 or higher, you need to change TeamsFx version to 0.3.1-beta.0 or higher in your package.json file to avoid version conflicts.

Prerequisites

  1. Install 2.10.0 or later version of Teams Toolkit from Visual Studio Code extension in Teams Toolkit (Preview) - Visual Studio Marketplace.
  2. Set up your dev environment.

The following are the steps to upgrade manifest and TeamsJS client SDK:

Upgrade manifest

  1. From Visual Studio Code, open command platte (Ctrl+Shift+P / ⌘⇧-P).
  2. Type: Teams: Upgrade Teams manifest to support Outlook and Office apps in the search box.
  3. Select Teams app manifest file.

This command will:

  • Update manifest version to use the latest m365DevPreview version.
  • Update manifest file to use the latest DevPreview schema.

For more information on required manifest schema and version, see Developer Preview manifest schema.

Upgrade Teams JavaScript Client SDK

  1. From Visual Studio Code, open command platte (Ctrl+Shift+P / ⌘⇧-P).
  2. Type: Teams: Upgrade Teams JS SDK references to support Outlook and Office apps in the search box.
  3. Select Teams app project folder.

This command will:

[!IMPORTANT] Ensure that you review any of the TODO items deposited by the tool.

Run your Teams application in Outlook and Office.com

After upgrading you can run Teams application in Outlook and Office.com.

Upload and run your application in Teams

The following are the steps to Test your application in Outlook and Office.com by uploading your application through Teams client:

  1. Push code changes to the server to host your application.
  2. Move application to a zip folder.
  3. Go to Teams client and select Apps.
  4. Select Upload a custom app and select your application's zip folder.
  5. Select Add on app details to install the application.

Teams install and launch your app. You can find your app in More apps.

m365-app

Run Teams application in Outlook

Perform the following steps to preview personal tab apps in Outlook web app and desktop clients:

Outlook web application

  1. Go to https://outlook.office.com.

  2. Select the three dots on the bottom left bar.

    apps

  3. Select the name of your app to preview in Outlook web application.

    preview-outlook-web-application

Outlook desktop client

  1. Open Outlook desktop client.

  2. Select the three dots on the bottom left bar.

    outlook-desktop-apps

  3. Select the name of your app to preview it in Outlook Desktop Client.

    outlook-desktop-preview

Run Teams application in Office.com

Perform the following steps to preview your apps in Outlook web client:

  1. Go to www.office.com.

  2. Select the three dots on the bottom left bar.

    m365-app

  3. Select the name of your app to preview it in office.com.

    office-preview

Create a sample application with Teams Toolkit and Run it in Outlook and Office.com

Perform the following steps to create a new tab app using Teams Toolkit and run it in Outlook and Office.com:

  1. Create a new sample Teams app in Visual Studio Code with Teams Toolkit, use command palette and run Teams: Create a new Teams app and select Start from a sample.

    sample-app

  2. Select Todo List (Works in Teams, Outlook and Office) or NPM Search Connector in the next window and click OK.

    sample-list

    This step will create a sample application. Once the project has been successfully created:

  3. Select Provision in the cloud.

    provision-in-cloud

  4. Select Deploy to the cloud.

    deploy-to-the-cloud

  5. Select Teams:Zip Teams metadata package.

    zip-metadata-package

  6. Follow the README file in the sample application project to run the application in Outlook and Office.com.

See also

Overview