Skip to main content

yammer message like set

Likes or unlikes a Yammer message

Usage

m365 yammer message like set [options]

Options

--messageId <messageId>

The id of the Yammer message

--enable [enable]

Set to true to like a message. Set to false to unlike it. Default true

-f, --force

Don't prompt for confirmation before unliking a message

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

caution

In order to use this command, you need to grant the Azure AD application used by the CLI for Microsoft 365 the permission to the Yammer API. To do this, execute the cli consent --service yammer command.

Examples

Likes the message with the ID 5611239081

m365 yammer message like set --messageId 5611239081

Unlike the message with the ID 5611239081

m365 yammer message like set --messageId 5611239081 --enable false

Unlike the message with the ID 5611239081 without asking for confirmation

m365 yammer message like set --messageId 5611239081 --enable false --force

Response

The command won't return a response on success.

CTRL + M