Skip to content

spo eventreceiver list

Retrieves event receivers for the specified web, site or list.

Usage

m365 spo eventreceiver list [options]

Options

-u, --webUrl <webUrl>
The URL of the web for which to retrieve the event receivers.
--listTitle [listTitle]
The title of the list for which to retrieve the event receivers, if the event receivers should be retrieved from a list. Specify either listTitle, listId or listUrl.
--listId [listId]
The id of the list for which to retrieve the event receivers, if the event receivers should be retrieved from a list. Specify either listTitle, listId or listUrl.
--listUrl [listUrl]
The url of the list for which to retrieve the event receivers, if the event receivers should be retrieved from a list. Specify either listTitle, listId or listUrl.
-s, --scope [scope]
The scope of which to retrieve the Event Receivers. Can be either "site" or "web". Defaults to "web". Only applicable when not specifying any of the list properties.
-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 full.
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Retrieves event receivers in web https://contoso.sharepoint.com/sites/contoso-sales.

m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales

Retrieves event receivers in site https://contoso.sharepoint.com/sites/contoso-sales.

m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --scope site

Retrieves event receivers for list with title Events in web https://contoso.sharepoint.com/sites/contoso-sales.

m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listTitle Events

Retrieves event receivers for list with ID 202b8199-b9de-43fd-9737-7f213f51c991 in web https://contoso.sharepoint.com/sites/contoso-sales.

m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listId '202b8199-b9de-43fd-9737-7f213f51c991'

Retrieves event receivers for list with url /sites/contoso-sales/lists/Events in web https://contoso.sharepoint.com/sites/contoso-sales.

m365 spo eventreceiver list --webUrl https://contoso.sharepoint.com/sites/contoso-sales --listUrl '/sites/contoso-sales/lists/Events'