Skip to main content
Version: Release Next

Microsoft Teams Plugin

The Microsoft Teams Plugin integrates Digital.ai Release with Microsoft Teams through the Microsoft Graph API, so you can send messages to users, channels, and groups as part of your release workflows.

This plugin runs directly on the Release server and is best suited for messaging and approval-handoff use cases, where a release needs to inform people of progress without leaving the pipeline.

What You Can Do With This Plugin​

  • Send messages to specific Teams channels
  • Send messages to individual users
  • Send messages to Teams groups
  • Send either plain text or formatted HTML messages
  • Capture the ID of each sent message for use in later tasks

Prerequisites​

Before using this plugin, ensure the following:

Microsoft Teams Access​

  • Access to a Microsoft Teams tenant
  • Appropriate Microsoft Teams permissions and roles for the account used in the connection
  • Digital.ai Release 25.3 or later

Authentication​

The plugin authenticates against the Microsoft Graph API using an app registered in Azure. The following Microsoft Graph API permissions are required. All are delegated permissions, except User.Read.All, which is an optional application permission.

PermissionRequiredDescription
ChannelMessage.SendYesSend messages to channels
Chat.CreateYesCreate chats
ChatMessage.SendYesSend chat messages
User.ReadYesRead signed-in user profile
Channel.ReadBasic.AllOptionalRead basic channel info
Chat.ReadOptionalRead chat messages
Team.ReadBasic.AllOptionalRead basic team info
User.Read.AllOptional (application)Read all user profiles

For more information, see Extend your app with Microsoft Graph permissions and scopes.

note

Multi-factor authentication (MFA) must not be enabled for the Microsoft account used in the connection. The plugin authenticates with a username and password, so an account that requires MFA cannot complete sign-in.

Required Information​

You should have the following details available:

  • Client ID and Client secret from the Azure app registration
  • Tenant ID of the Azure Active Directory (AAD) tenant
  • Username and Password of the Microsoft account used to send messages
  • Team name, Channel name, Group name, or recipient Email address, depending on the task

When To Use This Plugin​

Use the Microsoft Teams Plugin when you need:

  • Release status updates delivered to the teams that act on them
  • Direct messages to an individual owner or approver
  • Formatted messages, such as a summary with headings, links, and lists

Install the Microsoft Teams Plugin​

Install the Microsoft Teams plugin using the Plugin Manager.

Set up a Connection to the Microsoft Teams Server​

  1. From the navigation pane, click Configuration > Connections.

  2. Under HTTP server connections, beside Microsoft Teams: Server, click Add button

  3. Provide the connection details:

    Field NameDescription
    Title*Symbolic name for the configuration
    Username*User email address to authenticate Microsoft Teams server
    Password*User password to authenticate Microsoft Teams server
    Client ID*The client identifier issued to the client during the application registration process
    Client secret*The client secret issued to the client during the application registration process
    Tenant ID*Unique identifier for the Azure Active Directory (AAD) instance
    Proxy hostHTTP proxy host
    Proxy portHTTP proxy port
    Proxy usernameHTTP proxy username
    Proxy passwordHTTP proxy password
  4. Click Test to test the connection.

  5. Click Save to save the configuration.

Microsoft Teams Server connection page

Message Content Types​

Every send task has a Content type field that controls how Microsoft Teams renders the message. The default is Text.

Content typeUse for
TextPlain text, including text that contains characters such as < and >
HTMLFormatted text, such as headings, links, lists, line breaks, and code blocks
caution

When the content type is HTML, Microsoft Teams reads a less-than sign (<) as the start of an HTML tag and can drop the text that follows it. For example, Malformed message: a<e is displayed as Malformed message: a. Use Text for messages that contain such characters and need no formatting.

Available Tasks​

The following tasks are available in Digital.ai Release:

  • Microsoft Teams: Send Message To User
  • Microsoft Teams: Send Message To Channel
  • Microsoft Teams: Send Message To Group

Each task in the Microsoft Teams plugin includes a set of input properties and output properties. Input properties pass in parameters required for execution, while output properties capture the results returned by Microsoft Teams.

After a task runs, the URL of the sent message is shown in the Activity tab of the task, so you can open the message in Microsoft Teams.

tip

The task output properties can be mapped to Release variables for later use. For more information, see Mapping Task Output Properties to Variables.

Send Message to User​

This task sends a direct message to a specific Microsoft Teams user. Use it to notify an individual owner or approver about a release event.

Input Fields​

Send Message to User Input Properties

Field NameDescriptionExample
Microsoft Teams serverThe configured Microsoft Teams server connection to use.teams.example.com
Email addressEmail address of the user who receives the message.jane.doe@example.com
Content typeHow Microsoft Teams renders the message, either Text or HTML. Default is Text.HTML
MessageThe message to be sent to the user.<h3>Release 1.2 deployed</h3>

Output Fields​

Send Message to User Output Properties

Output PropertyDescription
Message IDID of the sent message.

Example Usage​

Suppose you want to notify a release approver with a formatted message:

FieldValue
Microsoft Teams serverteams.example.com
Email addressjane.doe@example.com
Content typeHTML
Message<h3>Approval needed</h3><a href="https://release.example.com">Open the release</a>

After running the task, the message appears in the user's chat with the heading and link rendered, and the output provides the Message ID.

Send Message to Channel​

This task sends a message to a specific channel within a Microsoft Teams team. Use it to keep a whole team informed about release progress.

Input Fields​

Send Message to Channel Input Properties

Field NameDescriptionExample
Microsoft Teams serverThe configured Microsoft Teams server connection to use.teams.example.com
Team nameName of the team that contains the channel.Release Engineering
Channel nameName of the channel that receives the message.General
Content typeHow Microsoft Teams renders the message, either Text or HTML. Default is Text.Text
MessageThe message to be sent to the channel.Release 1.2 is now in production.

Output Fields​

Send Message to Channel Output Properties

Output PropertyDescription
Message IDID of the sent message.

Example Usage​

Suppose you want to post a plain-text status update to the General channel of the Release Engineering team:

FieldValue
Microsoft Teams serverteams.example.com
Team nameRelease Engineering
Channel nameGeneral
Content typeText
MessageRelease 1.2 is now in production.

After running the task, the message is posted to the channel, and the output provides the Message ID.

Send Message to Group​

This task sends a message to all members of a Microsoft Teams group. Use it when the recipients are organized as a group rather than a channel.

Input Fields​

Send Message to Group Input Properties

Field NameDescriptionExample
Microsoft Teams serverThe configured Microsoft Teams server connection to use.teams.example.com
Group nameName of the group that receives the message.Release Approvers
Content typeHow Microsoft Teams renders the message, either Text or HTML. Default is Text.HTML
MessageThe message to be sent to the group.<ul><li>Build passed</li><li>Tests passed</li></ul>

Output Fields​

Send Message to Group Output Properties

Output PropertyDescription
Message IDID of the sent message.

Example Usage​

Suppose you want to send a formatted checklist to the Release Approvers group:

FieldValue
Microsoft Teams serverteams.example.com
Group nameRelease Approvers
Content typeHTML
Message<ul><li>Build passed</li><li>Tests passed</li></ul>

After running the task, the group receives the message with the list rendered, and the output provides the Message ID.