Microsoft Teams Bot icon

Microsoft Teams Bot

Send messages and cards via Microsoft Teams Bot

Message → Export Retained Messages (Metered)

AI-generated

Summary

Exports retained Microsoft Teams chat messages for a specified user through the metered Microsoft Graph export endpoint. Optionally filters by date range and model, and can fetch additional pages automatically or continue from a supplied next link.

Inputs

  • User ID (required) — Microsoft Entra user ID whose retained chat messages to export.
  • Count — Number of messages requested per page; defaults to 10 and accepts 1–50.
  • From DateTime — Optional ISO 8601 start time for the export filter.
  • To DateTime — Optional ISO 8601 end time for the export filter.
  • Model — Payment model for the metered export endpoint: Evaluation (default), Model A, or Model B.
  • Return All — When enabled, retrieves pages automatically; may return a large result. Defaults to false.
  • Next Link — Optional @odata.nextLink used to continue an earlier export when Return All is disabled.

Output shape

A list of exported message records.

With Return All enabled, the operation follows pagination and returns records from all retrieved pages; otherwise it returns the current page. The export is metered and may depend on the selected model and Graph API permissions.

Links

Discussion