Create a Microsoft Teams Webhook URL
Applies to: Patch My PC Publisher
Create a Workflow
Microsoft Teams webhooks used by the Publisher are created using Teams Workflows. This workflow generates a webhook URL that can be used to send notifications to a specific Teams channel.
To create a webhook URL:
Open Microsoft Teams and navigate to the Channel where you want to receive Webhook Notifications.
Click the More Options button … and select Workflows.

Select Send webhook alerts to a channel.

Allow a moment for the template to load, it can take a minute. Optionally, update the Name of the workflow so it can be easily distingushed in PowerAutomate. Click Next.

Allow a moment for the details tab to load to verify which Team and Channel the webhook URL will be created for and click Add workflow.

Click the copy icon to copy the webhook URL to your clipboard before click Done.

The copied URL can be used when adding or editing a webhook in the Publisher.
Consideration for Teams Private Channels
Microsoft Teams private channels have stricter permission boundaries than standard channels. Workflows created using Power Automate run as bots by default, and bots are not permitted to post messages to private channels unless explicitly configured.
To allow webhook notifications to be delivered to a private channel, the workflow must be updated to post messages as a user instead of as a bot.
Update the Workflow Post As Setting:
Navigate to https://make.powerautomate.com
Locate the workflow used for Teams notifications targeting the private channel and select Edit.

Select the workflow step named Post card in a chat or channel
Change the Post As value from Bot to User.

5. Save the workflow.
After this change, webhook notifications can be successfully delivered to Microsoft Teams private channels.
Last updated
Was this helpful?