# Send Message To Teams Channel

With the help of Send Message To Teams Channel Output it is possible to send a text to a desired channel in Microsoft Teams by inserting the link of the corresponding channel. To use this feature the App registration for Azure Active Directory needs to be done first and Teams Notifier must be activated. Please follow these steps:

* Visit: <https://portal.azure.com/#blade/Microsoft\\_AAD\\_IAM/ActiveDirectoryMenuBlade/RegisteredApps>

<figure><img src="/files/0oMhd6mx8yYB8CdKlOMj" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/wkFEObAuP5jGYkg9Jmmx" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/VsDMdo2qYRCiLgIaspGt" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7Goq2UMS9aWLZICxIoIl" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/LZGeVWTXiMr7l3BN8Lkw" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7EGXB5OFLyaoNICtQa7L" alt=""><figcaption></figcaption></figure>

* Also the Service needs to be added to Docker with the Teams Notifier connector endpoint. The portainer’s stack file must be extended with the following properties:

{% code overflow="wrap" %}

```xml
teams_connector:
    image: repo.moovit24.de:443/teams-connector:0.9.4
    restart: always
    environment:
        parameters:
        --de.moovit.teamsnotify.graph.security.clientId=<ID Step 15>
        --de.moovit.teamsnotify.graph.security.authority=https://login.microsoftonline.com/<Tennant ID Step16/
        ports:- 8471:8471
```

{% endcode %}

* Access the Docker IP using Port 8471 to see Swagger Doc
* Authenticate Container: http\://{dockerhost}:8471/v1/authentication/message
* Click on the link below to sign in and enter corresponding code to authenticate

<figure><img src="/files/DWNUAUzJUnWmleX1k9zC" alt=""><figcaption></figcaption></figure>

* Log in to your organization’s Microsoft account and accept the permissions

<figure><img src="/files/0QgJ8RP8sfQvimvcLUBQ" alt=""><figcaption></figcaption></figure>

* Retrieve Channel ID and Team ID

<figure><img src="/files/T4t3Q5b1ynQMJt0EOkJi" alt=""><figcaption></figcaption></figure>

#### Example:

<https://teams.microsoft.com/l/team/> <mark style="color:green;">19%3aHDloAoPDwl0ejNcq4sjmQJHDjEERSlamAbF7dgo6w1%40thread.tacv2</mark>/conversations? groupId=<mark style="color:orange;">a6eb9ab3-547b-4acfbee2e59405bc9b70</mark>\&tenantId=c731b2e8-8386-4d40-9845-292bd5d1de44

(<mark style="color:green;">green</mark>: Channel ID, <mark style="color:orange;">orange</mark>: Team ID)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.helmut.de/helmut4-releases/v4.6.0/helmut4-components/streamdesigner/nodes/outputs/misc/send-message-to-teams-channel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
