the evolution of sharepoint event receivers
DESCRIPTION
The Evolution of SharePoint Event Receivers. #SPSNYC July 26 th , 2014 Timothy Ferro. Thank You Event Sponsors Please visit them and inquire about their products & services To win prizes make sure to get your bingo card stamped by ALL sponsors. RDA Corporation. - PowerPoint PPT PresentationTRANSCRIPT
The Evolution of SharePoint Event Receivers
#SPSNYCJuly 26th, 2014Timothy Ferro
© 2014 RDA Corporation. All rights reserved.
Thank YouEvent Sponsors
Please visit them and inquire about their products & services
To win prizes make sure to get your bingo card stamped by ALL sponsors
© 2014 RDA Corporation. All rights reserved.
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.http://www.rdacorp.com
© 2014 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 Types EnumerationSharePoint 2013 Event Receiver Types EnumerationSharePoint 2013 Remote/App Events
DemoQuestionsReferences
© 2014 RDA Corporation. All rights reserved.
My BackgroundSenior SharePoint Developer / SharePoint Architect Senior Software Engineer at RDA CorporationAuthor / Speaker / Blogger / Tweeter7 Years Architecting and Developing SharePoint [email protected]@timferro
© 2014 RDA Corporation. All rights reserved.
PublicationsBook Technical Editor: You Don’t Know JS: Scope and Closures
White Paper Author: Utilizing and Visualizing Geolocation Data for Powerful Analysis
© 2014 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
© 2014 RDA Corporation. All rights reserved.
SharePoint 2007 Event Receiver Type EnumerationContextEvent ItemAddedInvalidReceiver ItemUpdatedItemAdding ItemDeletedItemUpdating ItemCheckedInItemDeleting ItemCheckedOutItemCheckingIn ItemUncheckedOutItemCheckingOut ItemAttachmentAddedItemUncheckingOut ItemAttachmentDeletedItemAttachmentAdding ItemFileMovedItemAttachmentDeleting ItemFileConvertedItemFileMoving FieldAddedFieldAdding FieldUpdatedFieldUpdating FieldDeletedFieldDeleting SiteDeletedSiteDeleting WebDeletedWebDeleting WebMovedWebMoving EmailReceivedhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.12).aspx
© 2014 RDA Corporation. All rights reserved.
SharePoint 2010 Event Receiver Type EnumerationContextEvent ItemAdded ListAddingInvalidReceiver ItemUpdated ListDeletingItemAdding ItemDeleted WebAddingItemUpdating ItemCheckedIn WorkflowStartingItemDeleting ItemCheckedOut ListAddedItemCheckingIn ItemUncheckedOut ListDeletedItemCheckingOut ItemAttachmentAdded WebProvisionedItemUncheckingOut ItemAttachmentDeleted WorkflowStartedItemAttachmentAdding ItemFileMoved WorkflowPostponedItemAttachmentDeleting ItemFileConverted WorkflowCompletedItemFileMoving FieldAddedFieldAdding FieldUpdatedFieldUpdating FieldDeletedFieldDeleting SiteDeletedSiteDeleting WebDeletedWebDeleting WebMovedWebMoving EmailReceivedhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.14).aspx
© 2014 RDA Corporation. All rights reserved.
SharePoint 2013 Event Receiver Type EnumerationContextEvent ItemAdded ListAdding GroupAdding RoleDefinitionAdded
InvalidReceiver ItemUpdated ListDeleting GroupUpdating RoleDefinitionUpdated
ItemAdding ItemDeleted WebAdding GroupDeleting RoleDefinitionDeleted
ItemUpdating ItemCheckedIn WorkflowStarting GroupUserAdding RoleAssignmentAdded
ItemDeleting ItemCheckedOut ListAdded GroupUserDeletingRoleAssignmentDeleted
ItemCheckingIn ItemUncheckedOut ListDeleted RoleDefinitionAdding InheritanceBroken
ItemCheckingOut ItemAttachmentAdded WebProvisioned RoleDefinitionUpdating InheritanceReset
ItemUncheckingOutItemAttachmentDeleted WorkflowStarted RoleDefinitionDeleting EntityInstanceAdded
ItemAttachmentAdding ItemFileMoved WorkflowPostponed RoleAssignmentAdding EntityInstanceUpdatedItemAttachmentDeleting ItemFileConverted WorkflowCompleted
RoleAssignmentDeleting EntityInstanceDeleted
ItemFileMoving FieldAdded InheritanceBreaking AppInstalled
FieldAdding FieldUpdated InheritanceResetting AppUpgraded
FieldUpdating FieldDeleted GroupAdded AppUninstalling
FieldDeleting SiteDeleted GroupUpdated ItemVersionDeleting
SiteDeleting WebDeleted GroupDeleted ItemVersionDeleted
WebDeleting WebMoved GroupUserAdded
WebMoving EmailReceived GroupUserDeletedhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.15).aspx
© 2014 RDA Corporation. All rights reserved.
SharePoint 2013 Remote/App EventsApp 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.
© 2014 RDA Corporation. All rights reserved.
DemoSharePoint 2010 or 2013Setting up SharePoint Event Receiver SolutionsFeature Activation CodeEvent Receiver CodeEvent Receiver Examples
© 2014 RDA Corporation. All rights reserved.
References / Questions / Evaluations 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/ [email protected] www.timferro.com @timferro