Send notifications to Microsoft Teams
Grant the Teams bot its Graph permissions, link users to Microsoft Entra ID and add Teams to an outbound notification.
Send outbound notifications through Microsoft Teams when users should get record updates in Teams, alongside or instead of email. You end with a notification that posts to each recipient’s chat with the Servicely app.
Before you begin
- You need the
administratorrole in Servicely and rights to grant admin consent in Microsoft Entra ID. - Complete Register an Azure bot, so the Microsoft Teams messaging account is active and the app is published.
- Know which outbound notification should also send to Teams.
Steps
-
In the Azure portal, open the bot’s app registration and go to API permissions → Add a permission → Microsoft Graph → Application permissions. Add the permissions in the table below.

The app registration menu with API permissions under Manage. -
Select Grant admin consent for your organisation.
-
Make sure every recipient’s Servicely user record has Active Directory ID set to their Microsoft Entra ID object ID. SCIM provisioning can fill it in. Otherwise copy the Object ID from the Microsoft Entra admin center.
-
In Servicely, go to Messaging & notifications → Notifications & templates → Outbound notifications and open the notification.

The Outbound notifications item in the Notifications & templates menu. -
On the Providers tab, select New under Provider configurations. Set Provider type to Teams.

The Providers tab of an incident notification, with a Teams provider configuration and the New button. -
Select a Messaging template. The shipped template “Work - with Summary & Client Journal” suits ticket updates. Save the provider configuration.
-
Check that the notification is Active and save it.
Notifications reach users who have never messaged the bot, so the bot must install itself for them. These Graph application permissions allow that.
| Permission | Required for |
|---|---|
TeamsAppInstallation.ReadWriteSelfForUser.All |
Installing the Servicely app for a user the bot has not messaged before |
Chat.Create |
Creating the one-to-one chat between the bot and the user |
AppCatalog.Read.All |
Finding the published app in your organisation’s app catalog |
User.Read.All |
Optional. Looking up a user’s Teams ID from their Entra ID object ID |
Result
When the notification fires, each recipient with an Active Directory ID gets the message in their chat with the Servicely app. The first notification installs the app for that user. Users can respond from Teams.
If a send fails for a passing reason, Servicely retries it. Passing reasons are HTTP 408, 425, 429 or a 5xx response, or no connection. Servicely does not retry a bad recipient, a refused message or revoked credentials. It also does not resend a message that may already have arrived. Two application properties control the retries:
| Property | Default | Effect |
|---|---|---|
messaging.outbound.retry.max_attempts |
5 |
The most attempts for one message |
messaging.outbound.retry.backoff_seconds |
30 |
The wait before the first retry. It doubles each time, up to 16 times this value. |
After the last attempt the message stays in error with “Gave up after N attempts”. A notification that uses a deactivated messaging template is refused at send.