Skip to main content

Get channel messages

Read the posts of a Teams channel, newest first, optionally only those since a date.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/get_channel_messages · 6 inputs (2 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Team IDStringYesTeam id.
Channel IDStringYesChannel id.
SinceDateTimeNoOnly posts created at or after this time (UTC); all posts when empty.
Maximum resultsNumberNo100Most posts to return.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
tableTableColumns: id, created, from, subject, text, body, content_type, reply_to_id, web_url.
countNumberNumber of messages.