Microsoft Teams Bot icon

Microsoft Teams Bot

Send messages and cards via Microsoft Teams Bot

Message → Get Many

AI-generated

Summary

Retrieves messages from a Microsoft Teams chat or channel, following Graph API pagination. Choose the recipient type and provide the corresponding chat ID, or team and channel IDs.

Inputs

  • Recipient Type (required) — Select Chat (Direct Message) or Channel.
  • Chat ID (required) — For a chat, the ID of the chat to retrieve messages from.
  • Team ID (required) — For a channel, the ID of the team containing it.
  • Channel ID (required) — For a channel, the ID of the channel to retrieve messages from.
  • Return All — Return all available messages when enabled; otherwise return up to the configured limit. Defaults to false.
  • Limit — Maximum number of messages to return when Return All is disabled. Defaults to 50.

Output shape

A list of message items, with each message returned as a separate item.

Uses Microsoft Graph pagination. With Return All disabled, output is capped at Limit; with it enabled, all pages are fetched.

Links

Discussion