Microsoft Teams post to a channel

Note: This is an external action and may execute on servers running outside your data center region. Before implementing, consider performance and regional concerns where digital boundaries are an issue. For more information, see In-tenant and external actions.

Use the Microsoft Teams post to a channel action to post a message to a channel you specify.

Note: 
  • The API used to post a message to a channel in Microsoft Teams is in beta stage. APIs under the /beta version in Microsoft Graph are subject to change. For more information, see this reference guide: Create chatMessage in a channel.
  • <script> tags cannot be included in HTML-based messages. If <script> tags exist in the message content of the Microsoft Teams post to a channel action, the workflow will fail during execution.

Before you start 

Add and configure Microsoft Teams post to a channel action

  1. Click the Integration action group in the action toolbox.

    or

    Type the action name or function in the Search field at the top of the action toolbox.

  2. Drag the Microsoft Teams post to a channel action to the designer canvas.
  3. Do one of the following to open the Action configuration window:

    • Double-click the action.
    • Click on the action and then click Configure.

    See Action configuration window for more information.

  4. Select a Connection. For information about admin consent to create a connection for Microsoft Teams actions, see Global administrator consent to create connections.
  5. Specify a Team.
  6. Specify a Channel.
  7. Select a Format type for the message.

  8. Write your Message to post. You can insert variables. Actual values of the variables appear in the message posted to the channel.

For more information on the fields and buttons, see Microsoft Teams post to a channel action fields, buttons, and settings.