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.

FieldTypeRequiredDefaultConstraintsExample
team_id
Team (group) id.
stringYes———
channel_id
Id of the channel to act on, from teams.list_channels — not its name.
stringYes———
max_results
Budget across pages, not a page size.
numberNo—≥ 1—

Output

One shape.

result

FieldTypeExample
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.

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.