Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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