Microsoft Teams icon

Microsoft Teams

Consume Microsoft Teams API

Actions15

Channel Message (Beta) → Get Many

AI-generated

Summary

Retrieve multiple channel messages from a specified Microsoft Teams channel within a team, with options to limit the number of messages returned or fetch all messages.

Inputs

  • Team Name or ID (required) — Select the team by name or provide its ID to specify the Microsoft Teams team containing the channel.
  • Channel Name or ID (required) — Select the channel by name or provide its ID within the specified team from which to fetch messages.
  • Return All — Set to true to retrieve all channel messages; otherwise, only up to the specified limit will be returned.
  • Limit — Maximum number of channel messages to return when 'Return All' is false; value must be between 1 and 500. Defaults to 50.

Output shape

a list of channel message objects containing details of each message.

Supports pagination: setting 'Return All' to true fetches all messages across multiple requests; otherwise, returns up to the 'Limit' specified. If any errors occur during retrieval, they will usually produce node execution errors.

Examples

Example 1: Fetch latest 50 messages from a specific channel in a team.

Set 'Team Name or ID' and 'Channel Name or ID' to the target team and channel, set 'Return All' to false, and 'Limit' to 50.

Links

Discussion