> For the complete documentation index, see [llms.txt](https://docs.patchmypc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patchmypc.com/patch-my-pc-publisher/manage/alerts-tab/webhooks-tab/technical-references/update-teams-legacy-webhook-use-workflows.md).

# Update a Microsoft Teams Legacy Webhook to Use Workflows in Patch My PC Publisher

*Applies to: Patch My PC Publisher V3.x*

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 Patch My PC (PMPC) 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&amp;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/manage/alerts-tab/webhooks-tab/technical-references/create-microsoft-teams-webhook-url.md).
2. In 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&amp;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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.patchmypc.com/patch-my-pc-publisher/manage/alerts-tab/webhooks-tab/technical-references/update-teams-legacy-webhook-use-workflows.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
