Question

I have requirement to get all the list of event receiver names(Not Default) in a share point 2013 site which are custom.

Kindly guide me on identifying the custom receivers only.

Thanks in advance! Kailash

Was it helpful?

Solution

Iterate the event receivers using Get-PnPEventReceiver and look at the ReceiverAssembly property. The ones that start with "Microsoft" are OOB. The ones that are blank, like in the below screen shot, are remote event receivers. Your custom server-side event receivers will have the name of the assembly they were created under.

Get-PnPEventReceiver -List $listName | ft ReceiverName,ReceiverAssembly

https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnpeventreceiver

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top