Cli-microsoft365: New command: get a message in a Microsoft Teams channel

Created on 12 Sep 2018  路  4Comments  路  Source: pnp/cli-microsoft365

Get a message from a Microsoft Teams channel

  • command; teams channel message get -i| --groupId <groupId> -c|--channelId <channelId> -m|--messageId
  • groupId: id of the group
  • channelId: id of the channel
  • messageId: id of the message
good first issue new feature work in progress

All 4 comments

@waldekmastykarz You can assign this one to me

Excellent!

Hi @wictorwilen,

Should the option 'messageId' be optional or required? If we make it optional this would mean that if the user does not provide this we will retrieve all messages from the given channel. Is this how you had that in mind Wictor?

In the CLI get commands always retrieve a single item, so messageId is required. If we want to retrieve multiple messages, then that would go to a list command.

Was this page helpful?
0 / 5 - 0 ratings