Adding a Teams destination
Microsoft has announced its deprecation of Office 365 connectors within Microsoft Teams towards the end of 2025.
To now post to Teams, you must configure a Microsoft Teams webhook URL in Power Automate and add a destination in SquaredUp which uses that URL.
You must also update your existing notification channels to point them to the new custom notification destination.
The Teams notification destination type lets you send alerts to a Microsoft Teams channel via specifying a webhook URL, which you must create using Power Automate.
Configuring a Microsoft Teams webhook URL in Power Automate
- Navigate to https://make.powerautomate.com.
- Click + Create to create a new flow.
- Select the Instant cloud flow option and then configure the following:
- Flow Name:
Enter a name for the flow. For example,Teams webhook
. - Choose how to trigger this flow:
Select the When a Teams webhook request is received option. - Click Create to create the flow.
- Flow Name:
- On the Edit your flow page, click the + button under the flow card to open the Add an action pane.
- Search for Microsoft Teams, then select the Post card in a chat or channel option under it and configure the following:
- Post as:
Optionally, choose the identity of the notification sender. - Post in:
Select Channel. - Team:
Select the team the channel belongs to. - Channel:
Select the channel to post the notification to. - Adaptive Card:
Click this field and then do the following:- click the fx button (Insert Expression).
- Select the Dynamic content tab in the pane that opens.
- Select Body.
- Click Add.
- Post as:
- Click Save.
- Select the When a Teams webhook request is received card to open the Parameters tab in the left-hand pane.
- Copy the HTTP URL that was generated. This is the URL you will use when adding a custom webhook in SquaredUp.
Adding a destination in SquaredUp
After configuring a Microsoft Teams webhook URL in Power Automate, you must configure a new notification destination in SquaredUp.
- In SquaredUp, navigate to Settings > Notifications.
- Click Add destination to open the Add destination window.
- Select the Custom option. Then configure the following:
- Destination name:
Enter a name for your destination. This helps you to identify this destination in the list of your destinations. - URL:
Paste the URL you generated in Power Automate. - Body:
Copy and paste the following into the body field. You can ignore theConfiguration error unable to load schema
error message, as the schema is to be used by Power Automate and is not relevant to SquaredUp.{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "body": [ { "text": "{{stateSymbol}} {{name}} changed from {{oldState}} to {{newState}}.", "id": "Title", "type": "TextBlock", "separator": true }, { "style": "expanded", "text": "{{#stateReason}}{{stateReason}}. \n{{/stateReason}}", "id": "Message", "type": "TextBlock", "separator": true, "wrap": true }, { "style": "expanded", "text": "This monitor is configured on the {{dashboardName}} dashboard in the {{workspaceName}} workspace.", "id": "Context", "type": "TextBlock", "separator": true, "wrap": true }, { "type": "Image", "url": "{{{imagePreviewUrl}}}" } ], "version": "1.0", "actions": [ { "id": "btnView", "type": "Action.OpenUrl", "title": "View in SquaredUp", "url": "{{link}}" } ] }
- Destination name:
- Click Save.