Skip to content

Commit 375c404

Browse files
Renaming Get-PnPWebhooksubscriptions to singular notation to align with the other cmdlets. Added an alias for backwards compatibility. (#3551)
Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com>
1 parent 11d195b commit 375c404

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

documentation/Get-PnPWebhookSubscriptions.md renamed to documentation/Get-PnPWebhookSubscription.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
Module Name: PnP.PowerShell
3-
title: Get-PnPWebhookSubscriptions
3+
title: Get-PnPWebhookSubscription
44
schema: 2.0.0
55
applicable: SharePoint Online
66
external help file: PnP.PowerShell.dll-Help.xml
7-
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPWebhookSubscriptions.html
7+
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPWebhookSubscription.html
88
---
99

10-
# Get-PnPWebhookSubscriptions
10+
# Get-PnPWebhookSubscription
1111

1212
## SYNOPSIS
1313
Gets all the Webhook subscriptions of the resource
1414

1515
## SYNTAX
1616

1717
```powershell
18-
Get-PnPWebhookSubscriptions [-List <ListPipeBind>] [-Connection <PnPConnection>]
18+
Get-PnPWebhookSubscription [-List <ListPipeBind>] [-Connection <PnPConnection>]
1919
2020
```
2121

@@ -27,14 +27,14 @@ Allows to retrieve Webhook subscriptions of specified list.
2727

2828
### EXAMPLE 1
2929
```powershell
30-
Get-PnPWebhookSubscriptions -List MyList
30+
Get-PnPWebhookSubscription -List MyList
3131
```
3232

3333
Gets all Webhook subscriptions of the list MyList
3434

3535
### EXAMPLE 2
3636
```powershell
37-
Get-PnPList | Get-PnPWebhookSubscriptions
37+
Get-PnPList | Get-PnPWebhookSubscription
3838
```
3939

4040
Gets all Webhook subscriptions of the all the lists

src/Commands/Webhooks/GetWebhookSubscriptions.cs renamed to src/Commands/Webhooks/GetWebhookSubscription.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77

88
namespace PnP.PowerShell.Commands.Webhooks
99
{
10-
[Cmdlet(VerbsCommon.Get, "PnPWebhookSubscriptions")]
10+
[Alias("Get-PnPWebhookSubscriptions")]
11+
[Cmdlet(VerbsCommon.Get, "PnPWebhookSubscription")]
1112
[OutputType(typeof(WebhookSubscription))]
12-
public class GetWebhookSubscriptions : PnPWebCmdlet
13+
public class GetWebhookSubscription : PnPWebCmdlet
1314
{
1415
[Parameter(Mandatory = false, ValueFromPipeline = true)]
1516
public ListPipeBind List;

0 commit comments

Comments
 (0)