pnp/cli-microsoft365

New command: `spo web alert get`

Open

#6,862 opened on Aug 26, 2025

View on GitHub
 (0 comments) (1 reaction) (0 assignees)TypeScript (399 forks)auto 404
good first issuehelp wantednew feature

Repository metrics

Stars
 (1,390 stars)
PR merge metrics
 (PR metrics pending)

Description

Usage

m365 spo web alert get [options]

Description

Retrieves details of a specific alert from a SharePoint site list

Options

Option Description
-u, --webUrl <webUrl> The URL of the SharePoint site.
--id <id> The ID of the alert.

Examples

Get details of an alert by ID:

m365 spo web alert get --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7cbb4c8d-8e4d-4d2e-9c6f-3f1d8b2e6a0e

Default properties

No response

Additional Info

API request

GET https://contoso.sharepoint.com/sites/Marketing/_api/Web/Alerts/GetById('<alert id>')?$expand=List,User,List/Rootfolder&$select=*,List/Id,List/Title,List/Rootfolder/ServerRelativeUrl

Contributor guide