Download presentation
Presentation is loading. Please wait.
Published byAnis Harmon Modified over 9 years ago
1
The Evolution of SharePoint Event Receivers from On-Prem to the Cloud @SharePointFest April 10 th, 2015 Timothy Ferro
2
Office 365 / SharePoint Implementations * Upgrades Hybrid * Portals Workflows * Search Data Analytics Visualization * Warehouse Big Data * SQL Server Tableau Cloud Enterprise Transformation Hybrid * Platform Services Mobile * Security Application Integration Digital Marketing Internet Sites * CMS eCommerce * Sitecore Transform your business with RDA! rdacorp.com | 888 441-1278 | marketing@rdacorp.com
3
© 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.com Established 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.
4
© 2015 RDA Corporation. All rights reserved. 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 References
5
© 2015 RDA Corporation. All rights reserved. My Background Senior Software Engineer at RDA Corporation Senior SharePoint Developer / SharePoint Architect MVP / Author / Editor / Speaker / Blogger / Tweeter 7+ Years Architecting and Developing SharePoint Solutions ferro@rdacorp.com www.timferro.com @timferro
6
© 2015 RDA Corporation. All rights reserved. Publications Technical EditorWhite Paper Author
7
© 2015 RDA Corporation. All rights reserved. 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. http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx Synchronous vs. Asynchronous Events Binding Event Receivers Disabling Event Receivers
8
© 2015 RDA Corporation. All rights reserved. SharePoint 2007 Event Receiver Type Enumeration FieldAddingFieldAdded FieldUpdatingFieldUpdated FieldDeletingFieldDeleted SiteDeletingSiteDeleted WebDeletingWebDeleted WebMovingWebMoved ItemAddingItemAdded ItemUpdatingItemUpdated ItemDeletingItemDeleted ItemCheckingInItemCheckedIn ItemCheckingOutItemCheckedOut ItemUncheckingOutItemUncheckedOut ItemAttachmentAddingItemAttachmentAdded ItemAttachmentDeletingItemAttachmentDeleted ItemFileMovingItemFileMoved ContextEventItemFileConverted InvalidReceiverEmailReceived FeatureDeactivatingFeatureActivated FeatureUninstallingFeatureInstalled http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.12).aspx
9
© 2015 RDA Corporation. All rights reserved. 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 InvalidReceiverEmailReceived FeatureDeactivatingFeatureActivated FeatureUninstallingFeatureInstalled http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.14).aspx
10
© 2015 RDA Corporation. All rights reserved. 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 InvalidReceiverEmailReceived ItemVersionDeleted FeatureDeactivatingFeatureActivated FeatureUninstallingFeatureInstalled WebRestored http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.15).aspx
11
© 2015 RDA Corporation. All rights reserved. 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. http://msdn.microsoft.com/en-us/library/office/dn456315.aspx Hosting modelSupport for remote event receivers Auto-hostedYes Provider-hostedYes 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.
12
© 2015 RDA Corporation. All rights reserved. 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 InvalidReceiverEmailReceived ItemVersionDeleted FeatureDeactivatingFeatureActivated FeatureUninstallingFeatureInstalled WebRestored http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.remoteapp.spremoteeventtype.aspx
13
© 2015 RDA Corporation. All rights reserved. Demo: SharePoint 2013 Event Receiver SharePoint 2013 Setting up SharePoint Event Receiver Solutions Feature Activation Code Event Receiver Code Event Receiver Examples
14
© 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/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.aspx http://msdn.microsoft.com/en- us/library/microsoft.sharepoint.spitemeventreceiver.aspx http://msdn.microsoft.com/en-us/library/office/dn456315.aspx http://www.learningsharepoint.com/2012/12/27/create-a-groupuseradded- eventreceiverspsecurityeventreceiver-in-sharepoint-2013/ http://www.learningsharepoint.com/2012/12/27/create-a-groupuseradded- eventreceiverspsecurityeventreceiver-in-sharepoint-2013/
15
© 2015 RDA Corporation. All rights reserved. My Background Senior Software Engineer at RDA Corporation Senior SharePoint Developer / SharePoint Architect MVP / Author / Editor / Speaker / Blogger / Tweeter 7+ Years Architecting and Developing SharePoint Solutions ferro@rdacorp.com www.timferro.com @timferro
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.