Post Teams message
Post a message to a Microsoft Teams channel, chosen by id or by name.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/teams_message · 12 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Team ID | String | No | Team id; or give team_name instead. | |
| Channel ID | String | No | Channel id; or give channel_name instead. | |
| Message | String | Yes | Message text (HTML allowed when html is true). | |
| Body is HTML | Boolean | No | false | Message is HTML. |
| Subject | String | No | Title shown above the message. | |
| Importance | String | No | normal | Importance of the message. |
| Reply to message ID | String | No | Post as a reply in the thread of this message instead of a new post. | |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
| Team name | String | No | Team display name (not case-sensitive), among the teams the signed-in user belongs to; used instead of team_id. | |
| Channel name | String | No | Channel display name (not case-sensitive); used instead of channel_id. | |
| Mentions | List | No | People to @mention, by email address or user id; also channel or team (channel posts only) to notify everyone. Write @[ann@contoso.com] in the message where a mention goes; mentions not placed in the text are put at the start. |
Outputs
| Output | Type | What it is |
|---|---|---|
| message_id | String | Message id. |