New Event Handlers in SharePoint 2010


In SharePoint 2010, there are many new event handlers that can be leveraged to interject our custom code that will take effect when end users perform various actions. There are around 12 new event handlers available.

List Events

Existing Ones

  • A field was added
  • A field is being added
  • A field was removed
  • A field is being removed
  • A field was updated
  • A field is being updated

New Additions

  • A list is being added
  • A list is being deleted
  • A list was added
  • A list was deleted

List Item Events

Existing Ones

 

  • An item is being added
  • An item is being updated
  • An item is being deleted
  • An item is being checked in
  • An item is being checked out
  • An item is being unchecked out
  • An attachment is being added to the item
  • An attachment is being removed from the item
  • A file is being moved
  • An item was added
  • An item was updated
  • An item was deleted
  • An item was checked in
  • An item was checked out
  • An item was unchecked out
  • An attachment was added to the item
  • An attachment was removed from the item
  • A file was moved
  • A file was converted

New Additions

  • The list received a context event

List Workflow Events

This is very new in 2010; these events are not available in SharePoint 2007:

  • A workflow is starting
  • A workflow was started
  • A workflow was postponed
  • A workflow was completed

List Email Events

This is very new in 2010; these events are not available in SharePoint 2007:

  • The list received an e-mail message

Feature Events

There are no additions

  • A feature was activated
  • A feature is deactivating
  • A feature was installed
  • A feature is being upgraded

Web Events

Existing Ones

  • A site collection is being deleted
  • A site is being deleted
  • A site is being moved
  • A site collection was deleted
  • A site was deleted
  • A site was moved

New Additions

  • A site is being provisioned
  • A site was provisioned

Now we are no longer depending on "feature stapling" to execute code on a site after it is provisioned. We can now just attach this web event when the site is provisioned.