Skip to content

Commit

Permalink
Renaming Get-PnPWebhooksubscriptions to singular notation to align wi…
Browse files Browse the repository at this point in the history
…th the other cmdlets. Added an alias for backwards compatibility. (#3551)

Co-authored-by: Gautam Sheth <[email protected]>
  • Loading branch information
KoenZomers and gautamdsheth authored Nov 10, 2023
1 parent 11d195b commit 375c404
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
Module Name: PnP.PowerShell
title: Get-PnPWebhookSubscriptions
title: Get-PnPWebhookSubscription
schema: 2.0.0
applicable: SharePoint Online
external help file: PnP.PowerShell.dll-Help.xml
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPWebhookSubscriptions.html
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPWebhookSubscription.html
---

# Get-PnPWebhookSubscriptions
# Get-PnPWebhookSubscription

## SYNOPSIS
Gets all the Webhook subscriptions of the resource

## SYNTAX

```powershell
Get-PnPWebhookSubscriptions [-List <ListPipeBind>] [-Connection <PnPConnection>]
Get-PnPWebhookSubscription [-List <ListPipeBind>] [-Connection <PnPConnection>]
```

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

### EXAMPLE 1
```powershell
Get-PnPWebhookSubscriptions -List MyList
Get-PnPWebhookSubscription -List MyList
```

Gets all Webhook subscriptions of the list MyList

### EXAMPLE 2
```powershell
Get-PnPList | Get-PnPWebhookSubscriptions
Get-PnPList | Get-PnPWebhookSubscription
```

Gets all Webhook subscriptions of the all the lists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@

namespace PnP.PowerShell.Commands.Webhooks
{
[Cmdlet(VerbsCommon.Get, "PnPWebhookSubscriptions")]
[Alias("Get-PnPWebhookSubscriptions")]
[Cmdlet(VerbsCommon.Get, "PnPWebhookSubscription")]
[OutputType(typeof(WebhookSubscription))]
public class GetWebhookSubscriptions : PnPWebCmdlet
public class GetWebhookSubscription : PnPWebCmdlet
{
[Parameter(Mandatory = false, ValueFromPipeline = true)]
public ListPipeBind List;
Expand Down

0 comments on commit 375c404

Please sign in to comment.