New command: `spo web alert get`
Open
Nobody has claimed this yet.
good first issue
help wanted
new feature
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 413
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 21
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the spo web alert get usage and the SharePoint API request in the issue. Trace the existing CLI command structure for SharePoint web commands, then verify the --webUrl and --id options retrieve the alert details from the documented endpoint. Done means the command is available with the shown syntax and returns the requested alert information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100