Actions11
Channel Message → Create
AI-generatedSummary
Create a message in a Microsoft Teams channel
Inputs
- teamId (required) — Select the team from the list, by URL, or by ID (the ID is the groupId parameter in the URL you get from Get a link to the team)
- channelId (required) — Select the channel from the list, by URL, or by ID (the ID is the threadId in the URL)
- contentType (required) — Whether the message is plain text or HTML
- message (required) — The content of the message to be sent
Output shape
Microsoft Graph API response for the created message, containing the message object with properties such as id, createdDateTime, and lastModifiedDateTime
The operation sends a POST request to /v1.0/teams/{teamId}/channels/{channelId}/messages with a body structured by the prepareMessage helper ({ body: { contentType, content: message } }). All four parameters are required; teamId and channelId support list, URL, and ID selection modes.
Examples
Example 1: Send a plain text welcome message to a specific channel
teamId: selected from list; channelId: selected from list; contentType: text; message: Welcome to the team!