# Update a Microsoft Teams Legacy Webhook to Use Workflows

*Applies to: Patch My PC Publisher*

## Overview

Older Office 365 connectors previously used for Microsoft Teams webhooks are deprecated. Microsoft announced the retirement of these connectors. For more information, see [Retirement of Office 365 connectors within Microsoft Teams on the Microsoft Developer](https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/) blog.

Microsoft Teams Workflows use the Adaptive Message Card format. Legacy Microsoft Teams webhooks created in earlier versions of the Publisher use the older Message Card format.

It is recommended that any webhook configured in the Publisher using the **MSTeams** message system be updated to use **MSTeamsWorkflow**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FxNLnPjixrlElQsIyidMR%2Fimage.png?alt=media&#x26;token=67b7b81f-1bf7-45b8-83f2-cfe0036a49cf" alt="MSTeamsWorkflow vs MSTeams Message System" width="509"><figcaption></figcaption></figure>

## Update an Existing Webhook

1. Create a new Microsoft Teams workflow webhook URL by following the steps in [Create a Microsoft Teams Webhook URL](https://docs.patchmypc.com/patch-my-pc-publisher/administration/alerts/webhook-notifications/create-a-microsoft-teams-webhook-url).
2. In the Publisher, navigate to Alerts and expand Webhook Notifications.
3. Select the existing webhook that uses the Microsoft Teams legacy provider and click Edit.
4. Change the Webhook Provider from **Microsoft Teams (Legacy Webhook)** to **Microsoft Teams Workflow**.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FygFbgkgts4Hdh1RPLtKg%2Fimage.png?alt=media&#x26;token=0620734d-b87e-4628-8f44-c9a3f0cab931" alt="Change the Webhook Provider" width="450"><figcaption></figcaption></figure>

1. Replace the existing Webhook URL with the new workflow webhook URL.
2. Click OK, then click Apply to save the changes.

After completing these steps, the webhook uses the modern Microsoft Teams Workflow model and sends notifications using the Adaptive Message Card format.
