page_type | languages | products | name | urlFragment | description | extensions | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
NPM Search Connector |
officedev-teamsfx-samples-me-NPM-search-connector-M365 |
Search and Share an NPM Package in Teams and Outlook (Web). |
|
NPM Search Connector is a Message Extension that allows you to perform a quick search to NPM Registry for a package and insert package details into conversations for sharing with your co-workers. The front end is built with Adaptive Cards to render NPM package details and the backend is an Azure Bot Service handling search queries and communication between the server workload and the clients, including Teams and Outlook (Web Client).
- How to build message extension bot on Azure for your app.
- How to use Teams Toolkit to build a message extension app that runs across Microsoft 365 including Teams and Outlook (Web)
- Node.js, supported versions: 18, 20, 22
- An Azure subscription
- Set up your dev environment for extending Teams apps across Microsoft 365
- Teams Toolkit Visual Studio Code Extension version 5.0.0 and higher or Teams Toolkit CLI
Here are the instructions to run the sample in Visual Studio Code. You can also try to run the app using Teams Toolkit CLI tool, refer to Try the Sample with Teams Toolkit CLI
- Clone the repo to your local workspace or directly download the source code.
- Open the project in Visual Studio Code.
- Open the
Run and Debug
Activity Panel. Select a target Microsoft application where the app runs:Debug in Teams
orDebug in Outlook
.
- Open the command palette and select
Teams: Provision
. - Once provision is completed, open the command palette and select
Teams: Deploy
.
- Once deployment is completed, you can preview the app running in Azure. In Visual Studio Code, open the
Run and Debug
Activity Panel. Select a target Microsoft application where the app runs:Launch Remote in Teams
orLaunch Remote in Outlook
.
To trigger the message extension in Teams, there are multiple entry points:
@mention
your message extension, from the search box area.@mention
your message extension from the compose message area.- Click the
...
under compose message area, find your message extension.
To trigger the message extension in Outlook:
Date | Author | Comments |
---|---|---|
Nov 9, 2021 | swatDong | add to support Teams Toolkit v2.10.0 |
Apr 18, 2022 | kuojianlu | update to support Teams Toolkit v3.8.0 |
Oct 17, 2022 | swatDong | update to support Teams Toolkit v4.1.0 |
Mar 28, 2023 | kuojianlu | update to support Teams Toolkit v5.0.0 |
We really appreciate your feedback! If you encounter any issue or error, please report issues to us following the Supporting Guide. Meanwhile you can make recording of your journey with our product, they really make the product better. Thank you!