The Evolution of SharePoint Event Receivers from On-Prem to the September 29 th, 2014 Timothy Ferro
RDA Corporation RDA helps our clients leverage technology to get their businesses moving. We solve complex business challenges that can often get companies stuck, costing them time, resources, and money. What makes us different than other custom application services is that we start with the business problem first. RDA’s experienced team takes the time to understand our clients' business needs and offers several ways to work together, including on site, field teams, and in our corporate development center. Our development services include.NET, SharePoint, business intelligence, cloud and mobile applications.
Agenda My Background Overview of Traditional Event Receivers Changes from 2007 to 2010 to 2013 – SharePoint 2007 Event Receiver Type Enumeration – SharePoint 2010 Event Receiver Type Enumeration – SharePoint 2013 Event Receiver Type Enumeration – SharePoint 2013 Remote/App Events Overview – SharePoint 2013 Remote Event Receiver Type Enumeration Demo Questions References
My Background Senior SharePoint Developer / SharePoint Architect Senior Software Engineer at RDA Corporation Author / Speaker / Blogger / Tweeter 7+ Years Architecting and Developing SharePoint Solutions
Publications Book Technical Editor: You Don’t Know JS: Scope and Closures and Types & GrammarYou Don’t Know JS: Scope and Closures Types & Grammar White Paper Author: Utilizing and Visualizing Geolocation Data for Powerful AnalysisUtilizing and Visualizing Geolocation Data for Powerful Analysis
Overview of Traditional Event Receivers An event receiver in Microsoft SharePoint is simply a method that is called when a triggering action occurs on a specified SharePoint object. Triggering events include actions such as adding, updating, deleting, moving, checking in, and checking out. SharePoint objects that listen for events—that is, event receiver hosts—include objects such as site collections, sites, lists, and workflows. us/library/gg749858(v=office.14).aspx us/library/gg749858(v=office.14).aspx Synchronous vs. Asynchronous Events Binding Event Receivers Disabling Event Receivers
SharePoint 2007 Event Receiver Type Enumeration FieldAddingFieldAdded FieldUpdatingFieldUpdated FieldDeletingFieldDeleted SiteDeletingSiteDeleted WebDeletingWebDeleted WebMovingWebMoved ItemAddingItemAdded ItemUpdatingItemUpdated ItemDeletingItemDeleted ItemCheckingInItemCheckedIn ItemCheckingOutItemCheckedOut ItemUncheckingOutItemUncheckedOut ItemAttachmentAddingItemAttachmentAdded ItemAttachmentDeletingItemAttachmentDeleted ItemFileMovingItemFileMoved ContextEventItemFileConverted InvalidReceiver Received FeatureDeactivatingFeatureActivated FeatureUninstallingFeatureInstalled
SharePoint 2010 Event Receiver Type Enumeration FieldAddingFieldAdded ListAdding FieldUpdatingFieldUpdated ListDeleting FieldDeletingFieldDeleted WebAdding SiteDeletingSiteDeleted ListAdded WebDeletingWebDeleted ListDeleted WebMovingWebMoved WebProvisioned ItemAddingItemAdded WorkflowStarting ItemUpdatingItemUpdated WorkflowStarted ItemDeletingItemDeleted WorkflowPostponed ItemCheckingInItemCheckedIn WorkflowCompleted ItemCheckingOutItemCheckedOut FeatureUpgrading ItemUncheckingOutItemUncheckedOut ItemAttachmentAddingItemAttachmentAdded ItemAttachmentDeletingItemAttachmentDeleted ItemFileMovingItemFileMoved ContextEventItemFileConverted InvalidReceiver Received FeatureDeactivatingFeatureActivated FeatureUninstallingFeatureInstalled
SharePoint 2013 Event Receiver Type Enumeration FieldAddingFieldAdded ListAdding GroupAddingGroupAdded FieldUpdatingFieldUpdated ListDeleting GroupUpdatingGroupUpdated FieldDeletingFieldDeleted WebAdding GroupDeletingGroupDeleted SiteDeletingSiteDeleted ListAdded GroupUserAddingGroupUserAdded WebDeletingWebDeleted ListDeleted GroupUserDeletingGroupUserDeleted WebMovingWebMoved WebProvisioned RoleDefinitionAddingRoleDefinitionAdded ItemAddingItemAdded WorkflowStarting RoleDefinitionUpdatingRoleDefinitionUpdated ItemUpdatingItemUpdated WorkflowStarted RoleDefinitionDeletingRoleDefinitionDeleted ItemDeletingItemDeleted WorkflowPostponed RoleAssignmentAddingRoleAssignmentAdded ItemCheckingInItemCheckedIn WorkflowCompleted RoleAssignmentDeletingRoleAssignmentDeleted ItemCheckingOutItemCheckedOut FeatureUpgrading InheritanceBreakingInheritanceBroken ItemUncheckingOutItemUncheckedOut InheritanceResettingInheritanceReset ItemAttachmentAddingItemAttachmentAdded AppInstalledEntityInstanceAdded ItemAttachmentDeletingItemAttachmentDeleted AppUpgradedEntityInstanceUpdated ItemFileMovingItemFileMoved AppUninstallingEntityInstanceDeleted ContextEventItemFileConverted ItemVersionDeleting InvalidReceiver Received ItemVersionDeleted FeatureDeactivatingFeatureActivated FeatureUninstallingFeatureInstalled WebRestored
SharePoint 2013 Remote/App Events Overview App Events: Installed, Upgraded, Uninstalling Remote Events: your cloud app can respond when a user adds, changes, or deletes a list, a list item, or a web. Remote event receivers and app event receivers work only with cloud apps for SharePoint (that is, auto-hosted and provider-hosted apps). These receivers don't work with SharePoint-hosted apps for SharePoint. Hosting modelSupport for remote event receivers Auto-hostedYes Provider-hostedYes SharePoint-hostedNo In SharePoint 2013, the code that runs when the event is triggered is served by a web service. […]if you register a remote event receiver, you also need to tell SharePoint which web service to invoke.
SharePoint 2013 Remote Event Receiver Type Enum FieldAddingFieldAdded ListAdding GroupAddingGroupAdded FieldUpdatingFieldUpdated ListDeleting GroupUpdatingGroupUpdated FieldDeletingFieldDeleted WebAdding GroupDeletingGroupDeleted SiteDeletingSiteDeleted ListAdded GroupUserAddingGroupUserAdded WebDeletingWebDeleted ListDeleted GroupUserDeletingGroupUserDeleted WebMovingWebMoved WebProvisioned RoleDefinitionAddingRoleDefinitionAdded ItemAddingItemAdded WorkflowStarting RoleDefinitionUpdatingRoleDefinitionUpdated ItemUpdatingItemUpdated WorkflowStarted RoleDefinitionDeletingRoleDefinitionDeleted ItemDeletingItemDeleted WorkflowPostponed RoleAssignmentAddingRoleAssignmentAdded ItemCheckingInItemCheckedIn WorkflowCompleted RoleAssignmentDeletingRoleAssignmentDeleted ItemCheckingOutItemCheckedOut FeatureUpgrading InheritanceBreakingInheritanceBroken ItemUncheckingOutItemUncheckedOut InheritanceResettingInheritanceReset ItemAttachmentAddingItemAttachmentAdded AppInstalledEntityInstanceAdded ItemAttachmentDeletingItemAttachmentDeleted AppUpgradedEntityInstanceUpdated ItemFileMovingItemFileMoved AppUninstallingEntityInstanceDeleted ContextEventItemFileConverted ItemVersionDeleting InvalidReceiver Received ItemVersionDeleted FeatureDeactivatingFeatureActivated FeatureUninstallingFeatureInstalled WebRestored
Demo SharePoint 2013 Setting up SharePoint Event Receiver Solutions Feature Activation Code Event Receiver Code Event Receiver Examples
References / Questions / Evaluations us/library/microsoft.sharepoint.speventreceivertype(v=office.15).aspx us/library/microsoft.sharepoint.speventreceivertype(v=office.15).aspx us/library/microsoft.sharepoint.spitemeventreceiver.aspx us/library/microsoft.sharepoint.spitemeventreceiver.aspx eventreceiverspsecurityeventreceiver-in-sharepoint-2013/ eventreceiverspsecurityeventreceiver-in-sharepoint-2013/