List Messages
teams.list_messages
ActionChat & messagingconnection required
GET /teams/{id}/channels/{id}/messages, following @odata.nextLink.
Read messages in a channel.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Microsoft Teams
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- tenant
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
team_id Team (group) id. | string | Yes | — | — | — |
channel_id Id of the channel to act on, from teams.list_channels — not its name. | string | Yes | — | — | — |
max_results Budget across pages, not a page size. | number | No | — | ≥ 1 | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
messages Each: id, created_at, from, from_id, body, body_type, web_url, reply_to_id, importance. Pass id to teams.send_message's reply_to_message_id to answer in-thread. | array | — |
count | number | — |
{
"count": 0,
"messages": []
}Notes
- Needs a delegated ChannelMessage.Read.All permission.
Related Microsoft Teams nodes
Templates that use Microsoft Teams
Solutions with Microsoft Teams
See List Messages run in a workflow.
In a technical demo we add the Microsoft Teams connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.