View All event handlers for document library

Hi,

how to view all events handlers for document library in sharepoint web application.

Thanks,

Siva.

May 27th, 2015 1:24am

You may want to install SharePoint Manager. It gives you the ability to view all the event handlers associated with the lists.
Free Windows Admin Tool Kit Click here and download it now
May 27th, 2015 1:59am

Hi, 

loop through your webapplication in powershell and use this code to get all event receivers for document library.

Add-PSSnapin microsoft.sharepoint.powershell
$GC = Start-SPAssignment            
$Site =  $GC | Get-SPSite http://sedwdevrtm:27829            
$Web = $Site.Rootweb  


    
$Web.Lists |            
   Where {$_.EventReceivers.Count -gt 0 -and $_.BaseBaseTemplate -eq "DocumentLibrary"} |            
   Select Title,EventReceivers |            
   Format-List            
Stop-SPAssignment $GC

  • Proposed as answer by DanishIslam 1 hour 17 minutes ago
May 27th, 2015 2:19am

Hi 

For particular document library use the below script

Add-PSSnapin microsoft.sharepoint.powershell 
$web = get-spweb "url of the web"
 $documentlibrary=$web.lists["Document Library Name"]
 $documentlibrary.EventReceivers |select Name,assembly|Format-List 
Free Windows Admin Tool Kit Click here and download it now
May 27th, 2015 2:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics