---
title: Send a Microsoft Teams notification
source: https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/newrelic/notification/newrelic-notification-sendmicrosoftteams
---

The action identifier is `newrelic.notification.sendMicrosoftTeams`.

Sends a message to a Microsoft Teams channel, integrated with destinations.

## Inputs

The following table describes all available input fields for this action.

| Input             | Type   | Description                                                                                                                                                                                                                                                                                                                                                         | Example                                           |
| ----------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| **destinationId** | String | **Required.** DestinationId associated with the New Relic destination. See [New Relic integration for Microsoft Teams](https://docs.newrelic.com/docs/alerts/get-notified/microsoft-teams-integrations/) to configure a destination and retrieve its ID, and [Destinations](https://docs.newrelic.com/docs/alerts/get-notified/destinations/) for more information. | `123e4567-e89b-12d3-a456-426614174000`            |
| **teamName**      | String | **Required.** Team name associated with the given destination ID.                                                                                                                                                                                                                                                                                                   | `TEST_TEAM`                                       |
| **channelName**   | String | **Required.** Channel name to send the message to.                                                                                                                                                                                                                                                                                                                  | `StagingTesting`                                  |
| **message**       | String | **Required.** Text message to send.                                                                                                                                                                                                                                                                                                                                 | `Hello from Workflow Automation`                  |
| **selectors**     | List   | **Optional.** Selectors to extract specific fields from the output.                                                                                                                                                                                                                                                                                                 | `[{"name": "success", "expression": ".success"}]` |

## Outputs

The following table describes all output fields returned by this action.

| Output         | Type    | Example                                                  |
| -------------- | ------- | -------------------------------------------------------- |
| `success`      | Boolean | `true/false`                                             |
| `sessionId`    | String  | `"sessionId": "7fa97f26-3791-492e-a39b-53793163dfb9"`    |
| `errorMessage` | String  | `"Message is a required field in the notification send"` |

## Example

| Workflow example                                                                                                                                                                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ```yaml name: msTeam_notification_workflow description: This is a test workflow to test MSTeam notification send action steps:   - name: SendMessageUsingMSTeam     type: action     action: newrelic.notification.sendMicrosoftTeams     version: 1     inputs:       destinationId: acc24dc2-d4fc-4eba-a7b4-b3ad0170f8aa       channel: DEV_TESTING       teamName: TEST_TEAM_DEV       message: Hello from Workflow ``` |
