Skip to content

Improve the teams chat message list command #6484

@apc005

Description

@apc005

Hi

When running "teams chat message list" the command returns all the messages in the specified chat. On old/verbose chats this takes a lot of time and sometimes even fails

The Microsoft Graph itself has a default limit to 20 messages only (that can be overrided by adding $top=xx option)

It would be great to add the following options to "teams chat message list" :

  • --startTime [startTime] (as per outlook message list, similar to $filter option in Microsoft graph)
  • --endTime [endTime] (as per outlook message list, similar to $filter option in Microsoft graph) - default now
  • --topMessages [number] (same as $top option in Microsoft graph) - Max number of returned messages - default 20
  • --orderBy (same as $orderby option in Microsoft graph) lastModifiedDateTime or createdDateTime (Microsoft supports only decreasing order)

Best regards

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions