Actions11
Chat Message → Get Many
AI-generatedSummary
Retrieve multiple messages from a Microsoft Teams chat.
Inputs
- chatId (required) — Select the chat from the list, by URL, or by ID (find the chat ID after
conversations/in the URL). Modes include From List (searchable viagetChats) and By ID (supports full chat ID format with URL template). - returnAll — Whether to return all results or only up to a given limit. Defaults to false.
- limit — Max number of messages to return. Only shown when
returnAllis false. Defaults to 50.
Output shape
array
Array of message objects from Microsoft Graph endpoint
GET /v1.0/chats/{chatId}/messages. WhenreturnAllis false, returns up tolimitmessages (default 50). WhenreturnAllis true, returns all available messages paginated through the API.
Examples
Example 1: Get the 20 most recent messages from a selected chat.
Set chatId via From List or By ID, set returnAll to false, and set limit to 20.