Get channel messages
Read the posts of a Teams channel, newest first, optionally only those since a date.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/get_channel_messages · 6 inputs (2 required), 2 outputs
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 | Yes | Team id. | |
| Channel ID | String | Yes | Channel id. | |
| Since | DateTime | No | Only posts created at or after this time (UTC); all posts when empty. | |
| Maximum results | Number | No | 100 | Most posts to return. |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Columns: id, created, from, subject, text, body, content_type, reply_to_id, web_url. |
| count | Number | Number of messages. |