the evolution of sharepoint event receivers from on-prem to the cloud @sharepointfest april 10 th,...
TRANSCRIPT
The Evolution of SharePointEvent Receivers fromOn-Prem to the Cloud
@SharePointFestApril 10th, 2015Timothy Ferro
Office 365 /SharePointImplementations *
UpgradesHybrid * Portals
Workflows * Search
Data AnalyticsVisualization * Warehouse
Big Data * SQL ServerTableau
Cloud Enterprise
TransformationHybrid * Platform Services
Mobile * SecurityApplication Integration
Digital Marketing
Internet Sites * CMS eCommerce * Sitecore
Transform your business with RDA!
rdacorp.com | 888 441-1278 | [email protected]
© 2015 RDA Corporation. All rights reserved.
RDA Corporation
RDA provides analysis services to help our clients evaluate their options and determine the best platform solution for their needs—whether cloud-based, on-premises, or hybrid. We also deliver full lifecycle application development services, helping build, implement, deploy, host, manage, scale and support those solutions. RDA first takes the time to understand our clients' business needs and then maps an appropriate technology solution, optimized to the cost, scale, mobility and security requirements of their business.http://www.rdacorp.comEstablished in 1988, RDA's corporate office and Development Center are located in Baltimore with additional technology teams in Atlanta, Charlotte, Philadelphia, and Washington, D.C.
© 2015 RDA Corporation. All rights reserved.
AgendaMy BackgroundOverview of Traditional Event ReceiversChanges from 2007 to 2010 to 2013
SharePoint 2007 Event Receiver Type EnumerationSharePoint 2010 Event Receiver Type EnumerationSharePoint 2013 Event Receiver Type EnumerationSharePoint 2013 Remote/App Events OverviewSharePoint 2013 Remote Event Receiver Type Enumeration
DemoReferences
© 2015 RDA Corporation. All rights reserved.
My BackgroundSenior Software Engineer at RDA CorporationSenior SharePoint Developer / SharePoint Architect MVP / Author / Editor / Speaker / Blogger / Tweeter7+ Years Architecting and Developing SharePoint [email protected] www.timferro.com @timferro
© 2015 RDA Corporation. All rights reserved.
PublicationsTechnical Editor White Paper Author
© 2015 RDA Corporation. All rights reserved.
Overview of Traditional Event ReceiversAn 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. http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
Synchronous vs. Asynchronous EventsBinding Event ReceiversDisabling Event Receivers
© 2015 RDA Corporation. All rights reserved.
SharePoint 2007 Event Receiver Type EnumerationFieldAdding FieldAddedFieldUpdating FieldUpdatedFieldDeleting FieldDeletedSiteDeleting SiteDeletedWebDeleting WebDeletedWebMoving WebMovedItemAdding ItemAddedItemUpdating ItemUpdatedItemDeleting ItemDeletedItemCheckingIn ItemCheckedInItemCheckingOut ItemCheckedOutItemUncheckingOut ItemUncheckedOutItemAttachmentAdding ItemAttachmentAddedItemAttachmentDeleting ItemAttachmentDeletedItemFileMoving ItemFileMovedContextEvent ItemFileConvertedInvalidReceiver EmailReceivedFeatureDeactivating FeatureActivatedFeatureUninstalling FeatureInstalled
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.12).aspx
© 2015 RDA Corporation. All rights reserved.
SharePoint 2010 Event Receiver Type EnumerationFieldAdding FieldAdded ListAddingFieldUpdating FieldUpdated ListDeletingFieldDeleting FieldDeleted WebAddingSiteDeleting SiteDeleted ListAddedWebDeleting WebDeleted ListDeletedWebMoving WebMoved WebProvisionedItemAdding ItemAdded WorkflowStartingItemUpdating ItemUpdated WorkflowStartedItemDeleting ItemDeleted WorkflowPostponedItemCheckingIn ItemCheckedIn WorkflowCompletedItemCheckingOut ItemCheckedOut FeatureUpgradingItemUncheckingOut ItemUncheckedOutItemAttachmentAdding ItemAttachmentAddedItemAttachmentDeleting ItemAttachmentDeletedItemFileMoving ItemFileMovedContextEvent ItemFileConvertedInvalidReceiver EmailReceivedFeatureDeactivating FeatureActivatedFeatureUninstalling FeatureInstalled
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.14).aspx
© 2015 RDA Corporation. All rights reserved.
SharePoint 2013 Event Receiver Type EnumerationFieldAdding FieldAdded ListAdding GroupAdding GroupAdded
FieldUpdating FieldUpdated ListDeleting GroupUpdating GroupUpdated
FieldDeleting FieldDeleted WebAdding GroupDeleting GroupDeleted
SiteDeleting SiteDeleted ListAdded GroupUserAdding GroupUserAdded
WebDeleting WebDeleted ListDeleted GroupUserDeleting GroupUserDeleted
WebMoving WebMoved WebProvisioned RoleDefinitionAdding RoleDefinitionAdded
ItemAdding ItemAdded WorkflowStarting RoleDefinitionUpdating RoleDefinitionUpdated
ItemUpdating ItemUpdated WorkflowStarted RoleDefinitionDeleting RoleDefinitionDeleted
ItemDeleting ItemDeleted WorkflowPostponed RoleAssignmentAdding RoleAssignmentAdded
ItemCheckingIn ItemCheckedIn WorkflowCompletedRoleAssignmentDeleting
RoleAssignmentDeleted
ItemCheckingOut ItemCheckedOut FeatureUpgrading InheritanceBreaking InheritanceBroken
ItemUncheckingOut ItemUncheckedOut InheritanceResetting InheritanceReset
ItemAttachmentAdding ItemAttachmentAdded AppInstalled EntityInstanceAddedItemAttachmentDeleting
ItemAttachmentDeleted AppUpgraded EntityInstanceUpdated
ItemFileMoving ItemFileMoved AppUninstalling EntityInstanceDeleted
ContextEvent ItemFileConverted ItemVersionDeleting
InvalidReceiver EmailReceived ItemVersionDeleted
FeatureDeactivating FeatureActivated
FeatureUninstalling FeatureInstalled WebRestoredhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.15).aspx
© 2015 RDA Corporation. All rights reserved.
SharePoint 2013 Remote/App Events OverviewApp Events: Installed, Upgraded, UninstallingRemote 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.
http://msdn.microsoft.com/en-us/library/office/dn456315.aspx
Hosting model Support for remote event receivers
Auto-hosted Yes
Provider-hosted
Yes
SharePoint-hosted
No
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.
© 2015 RDA Corporation. All rights reserved.
SharePoint 2013 Remote Event Receiver Type EnumFieldAdding FieldAdded ListAdding GroupAdding GroupAdded
FieldUpdating FieldUpdated ListDeleting GroupUpdating GroupUpdated
FieldDeleting FieldDeleted WebAdding GroupDeleting GroupDeleted
SiteDeleting SiteDeleted ListAdded GroupUserAdding GroupUserAdded
WebDeleting WebDeleted ListDeleted GroupUserDeleting GroupUserDeleted
WebMoving WebMoved WebProvisioned RoleDefinitionAdding RoleDefinitionAdded
ItemAdding ItemAdded WorkflowStarting RoleDefinitionUpdating RoleDefinitionUpdated
ItemUpdating ItemUpdated WorkflowStarted RoleDefinitionDeleting RoleDefinitionDeleted
ItemDeleting ItemDeleted WorkflowPostponed RoleAssignmentAdding RoleAssignmentAdded
ItemCheckingIn ItemCheckedIn WorkflowCompletedRoleAssignmentDeleting
RoleAssignmentDeleted
ItemCheckingOut ItemCheckedOut FeatureUpgrading InheritanceBreaking InheritanceBroken
ItemUncheckingOut ItemUncheckedOut InheritanceResetting InheritanceReset
ItemAttachmentAdding ItemAttachmentAdded AppInstalled EntityInstanceAddedItemAttachmentDeleting
ItemAttachmentDeleted AppUpgraded EntityInstanceUpdated
ItemFileMoving ItemFileMoved AppUninstalling EntityInstanceDeleted
ContextEvent ItemFileConverted ItemVersionDeleting
InvalidReceiver EmailReceived ItemVersionDeleted
FeatureDeactivating FeatureActivated
FeatureUninstalling FeatureInstalled WebRestoredhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.remoteapp.spremoteeventtype.aspx
© 2015 RDA Corporation. All rights reserved.
Demo: SharePoint 2013 Event ReceiverSharePoint 2013Setting up SharePoint Event Receiver SolutionsFeature Activation CodeEvent Receiver CodeEvent Receiver Examples
© 2015 RDA Corporation. All rights reserved.
References http://www.rdacorp.com/2014/06/sharepoint-2013-new-event-receivers-nutshell/ http://www.timferro.com/wordpress/archives/737 http
://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.15).aspx
http://msdn.microsoft.com/en-us/library/office/jj220048.aspx http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver.a
spx http://msdn.microsoft.com/en-us/library/office/dn456315.aspx http://www.learningsharepoint.com/2012/12/27/create-a-groupuseradded-eventrec
eiverspsecurityeventreceiver-in-sharepoint-2013/
© 2015 RDA Corporation. All rights reserved.
My BackgroundSenior Software Engineer at RDA CorporationSenior SharePoint Developer / SharePoint Architect MVP / Author / Editor / Speaker / Blogger / Tweeter7+ Years Architecting and Developing SharePoint [email protected] www.timferro.com @timferro