external help file | applicable | schema |
---|---|---|
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online |
2.0.0 |
Return registered eventreceivers
Get-PnPEventReceiver [-List <ListPipeBind>]
[-Identity <EventReceiverPipeBind>]
[-Web <WebPipeBind>]
[-Connection <SPOnlineConnection>]
Get-PnPEventReceiver [-Identity <EventReceiverPipeBind>]
[-Web <WebPipeBind>]
[-Includes <String[]>]
[-Connection <SPOnlineConnection>]
Returns all registered or a specific eventreceiver
PS:> Get-PnPEventReceiver
This will return all registered event receivers on the current web
PS:> 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
PS:> Get-PnPEventReceiver -Identity MyReceiver
This will return the event receiver with the provided ReceiverName "MyReceiver" from the current web
PS:> Get-PnPEventReceiver -List "ProjectList"
This will return all registered event receivers in the provided "ProjectList" list
PS:> 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"
PS:> Get-PnPEventReceiver -List "ProjectList" -Identity MyReceiver
This will return the event receiver in the "ProjectList" list with the provided ReceiverName "MyReceiver"
The Guid of the event receiver
Type: EventReceiverPipeBind
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: True
Specify properties to include when retrieving objects from the server.
Type: String[]
Parameter Sets:
Required: False
Position: 0
Accept pipeline input: False
The list object from which to get the event receiver object
Type: ListPipeBind
Parameter Sets: List
Required: False
Position: Named
Accept pipeline input: False
The web to apply the command to. Omit this parameter to use the current web.
Type: WebPipeBind
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: SPOnlineConnection
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False