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

Était-ce utile?

La 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

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top