Get-PnPEventReceiver

Return registered eventreceivers

Syntax

Get-PnPEventReceiver
   [-List <ListPipeBind>]
                       [-Identity <EventReceiverPipeBind>]
                       [-Web <WebPipeBind>]
                       [-Connection <SPOnlineConnection>]
Get-PnPEventReceiver
   [-Includes <String[]>]
                       [-Identity <EventReceiverPipeBind>]
                       [-Web <WebPipeBind>]
                       [-Connection <SPOnlineConnection>]

Description

Returns all registered or a specific eventreceiver

Examples

------------------EXAMPLE 1------------------

Get-PnPEventReceiver

This will return all registered event receivers on the current web

------------------EXAMPLE 2------------------

Get-PnPEventReceiver -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22

This will return the event receiver with the provided ReceiverId "fb689d0e-eb99-4f13-beb3-86692fd39f22" from the current web

------------------EXAMPLE 3------------------

Get-PnPEventReceiver -Identity MyReceiver

This will return the event receiver with the provided ReceiverName "MyReceiver" from the current web

------------------EXAMPLE 4------------------

Get-PnPEventReceiver -List "ProjectList"

This will return all registered event receivers in the provided "ProjectList" list

------------------EXAMPLE 5------------------

Get-PnPEventReceiver -List "ProjectList" -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22

This will return the event receiver in the provided "ProjectList" list with with the provided ReceiverId "fb689d0e-eb99-4f13-beb3-86692fd39f22"

------------------EXAMPLE 6------------------

Get-PnPEventReceiver -List "ProjectList" -Identity MyReceiver

This will return the event receiver in the "ProjectList" list with the provided ReceiverName "MyReceiver"

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Identity

The Guid of the event receiver

Type:EventReceiverPipeBind
Position:Named
Accept pipeline input:True
Accept wildcard characters:False
-Includes

Specify properties to include when retrieving objects from the server.

Type:String[]
Position:0
Accept pipeline input:False
Accept wildcard characters:False
-List

The list object from which to get the event receiver object

Type:ListPipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Web

The web to apply the command to. Omit this parameter to use the current web.

Type:WebPipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.SharePoint.Client.EventReceiverDefinition