If you use Microsoft Teams you may want to be able to send information from external services. There are many apps that can be added to teams to accomplish this but what if you have an internal system or custom script and you want it’s output to be sent to Teams? Well, there’s an app for that too. You can add the Incoming Webhook app to your Teams instance and configure where and who it should deposit information as. You can also create outgoing webhooks that I’ll go through later on in this article. Before we get started you’ll need to be an owner of your Teams instance or have permissions to add apps to it. I also recommend that you use the Teams desktop application as it allows more control for configuration. You can download that from Microsoft here.
Creating An Incoming Webhook for Microsoft Teams
- In the desktop Teams application, go to Apps in the sidebar on the left.
- Type webhook in the Search all text box on the left hand side.
- Click on the Incoming Webhook tile, then in the pop up click on the Add to a team button.
- Type the channel or team name you wish to add the webhook to in the text box, then click the Set up a connector button.
- Wait for the Connectors for “example” channel in “example” team page to popup.
- Now, type a name in the text box for the webhook to be identify by, and optionally give it an image.
- Click on Create and until the webhook URL is presented to you.
- Take a copy of the URL for use later on in whatever service you wish to link to Teams.
- Click Done and you will return to the connectors page.
- You can do this multiple times and create multiple webhooks for different services and different channels.
Managing All Incoming Webhooks for Microsoft Teams
- In the desktop Teams application, go to the General channel, and click the ellipse.
- Then select the Connectors option.
- The Connectors for “General” channel in “example” team page will open.
- Go to the Configured section under MANAGE.
- You should see the Incoming Webhook app here. Under the Configure button click the (number) configured text.
- You will see the webhooks that have been added to the Teams instance.
- By clicking on the Manage button next to each webhook, you can change the name, image, or remove it. You can also access the incoming webhook URL here.
Removing All Incoming Webhooks for Microsoft Teams
- In the desktop Teams application, go to the Team name, and click the ellipse.
- Go to Manage Team.
- Click on the Apps tab.
- Find the Incoming Webhook app in the list of apps.
- Click the Trash/Garbage/Rubbish can/bin icon on the far right of the Incoming Webhook.
- You will be asked if you wish to Uninstall the Incoming Webhook app. Click the Uninstall button.
- The Incoming Webhook app will be uninstalled from your Teams instance.
Creating An Outgoing Webhook for Microsoft Teams
- In the desktop Teams application, go to the Team name, and click the ellipse.
- Go to Manage Team.
- Click on the Apps tab.
- In the very bottom right hand corner of the page, click the text Create an outgoing webhook.
- In the Create an outgoing webhook popup, you can enter the Name, Callback URL, Description and Profile picture of the webhook. Click Create.
- Now you will receive the Security token with which the webhook can securely communicate with Teams.
- The Outgoing Webhook will be displayed on the Apps tab of the Teams manage page. Here you can click it to edit it’s information, but you will not be able to see the security token. If you lose it, you must recreate the outgoing webhook.
Removing An Outgoing Webhook for Microsoft Teams
- In the desktop Teams application, go to the Team name, and click the ellipse.
- Go to Manage Team.
- Click on the Apps tab.
- Find the name of the outgoing webhook in the list of apps. It will have (Outgoing Webhook) next to the name.
- Click the Trash/Garbage/Rubbish can/bin icon on the far right of the Outgoing Webhook in the apps list.
- You will be asked if you wish to Uninstall the outgoing webhook. Click the Uninstall button.
- The Outgoing Webhook will be uninstalled from your Teams instance.
I’ve found webhooks for Teams to be extremely useful. I’ve recently updated my Network Device Status Monitor utility to support Teams as an output option. You can find out more about that here.
If you have any questions or comments, please leave them below.
-Mike