Edit

Share via

Send activity feed notification

Prerequisites

Ensure you install the following tools and set up your development environment:

  Install For using...
  Visual Studio 2022 You can install the enterprise version in Visual Studio 2022 and install the ASP.NET and web development workloads. Use the latest version.
  .NET Core SDK version 3.1 Customized bindings for local debugging and Azure Functions app deployments. Use the latest version or install the portable version.
  Dev tunnel Teams app features (conversational bots, message extensions, and incoming webhooks) need inbound connections. A tunnel connects your development system to Teams. Dev tunnel is a powerful tool to securely open your localhost to the internet and control who has access. Dev tunnel is available in Visual Studio 2022 version 17.7.0 or later.
Or
You can also use ngrok as a tunnel to connect your development system to Teams. It isn't required for apps that only include tabs. This package is installed within the project directory (using npm devDependencies).

Note

After downloading ngrok, sign up and install authtoken.

Ensure you've the following accounts and set up your development environment:

  • Microsoft account.
  • The Teams app must be installed for the recipient, either personally, or in a team or chat.
  • The Tenant ID for sending and receiving notifications must match.

Set up your Teams development tenant

A tenant is like a space or a container where you chat, share files, and run meetings for your organization in Teams. You can also upload and test the custom app.

Check for custom app upload option

After creating the app, you must load your app in Teams without distributing it. The function is known as custom app upload. Sign in to your Microsoft 365 account to view this option.

Note

Custom app upload is necessary for previewing and testing apps in Teams local environment. Enable custom app upload to preview and test your app in Teams locally.

Do you already have a tenant, and do you have the admin access? Let's check if you really do!

To verify custom upload apps in Teams:

  1. In the Teams client, select the Apps icon.

  2. Select Manage your apps.

  3. Select Upload an app.

  4. Look for the option to Upload a custom app.

    Screenshot shows the custom upload app in Teams.

    Note

    Contact Teams administrator, if you can't upload a custom app.

Create a free Teams developer tenant (optional)

If you don't have a Teams developer account, you can get it free. Join the Microsoft 365 developer program!

  1. Go to the Microsoft 365 developer program.

  2. Select Join Now and follow the onscreen instructions.

  3. Select Set-up E5 subscription from the welcome screen.

  4. Set up an administrator account. After you finish, the following screen displays.

    Microsoft

  5. Sign in to Teams using the new administrator account. Now you can select Upload a custom app.