Skip to content

Bug report: Teamname is undefined in confirmation message when using m365 teams channel remove  #4004

@nicodecleyre

Description

@nicodecleyre

Description

When using the parameter teamName instead of teamId in the command m365 teams channel remove . The confirm message is Are you sure you want to remove the channel channelname from team undefined?

the message in the code schould be Are you sure you want to remove the channel ${channel} from team ${args.options.teamId || args.options.teamName}?

Steps to reproduce

execute command m365 teams channel remove with parameter teamName

Expected results

confirm message should be `Are you sure you want to remove the channel channelName from team teamName

Actual results

The confirm message is Are you sure you want to remove the channel channelname from team undefined?

Diagnostics

No response

CLI for Microsoft 365 version

v6.0.0

nodejs version

16.18.0

Operating system (environment)

Windows

Shell

cmd

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions