Skip to content

[BUG] Get-PnPTeamsChannelMessageReply and -IncludeDeleted flag bug #3532

@siddharth-vaghasia

Description

@siddharth-vaghasia

Reporting an Issue

Get-PnPTeamsChannelMessageReply command is returning only deleted replies if we don't specify -IncludeDeleted flag

Get-PnPTeamsChannelMessageReply -Team MyTestTeam -Channel "My Channel" -Message 1653089769293 -IncludeDeleted

Actual behavior

Get-PnPTeamsChannelMessageReply -Team CLITeamDemo -Channel "climicrosoft365" -Message 1698072147830

If we are not specifying -IncludeDeleted option it is only returns deleted messages replies, below screenshot

Reference message screenshot (if you see here there are 4 replies and only 1 is deleted)
image

Output
image

Expected behavior

if we don't specify -IncludeDeleted option it should return all the active messages/which are not deleted

Steps to reproduce behavior

Run the command with below option

Get-PnPTeamsChannelMessageReply -Team CLITeamDemo -Channel "climicrosoft365" -Message 1698072147830

What is the version of the Cmdlet module you are running?

PnP.Powershell 2.0.53 (nightly build)

Which operating system/environment are you running PnP PowerShell on?

  • [x ] Windows

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions