The Evolution of SharePointEvent

Report
The Evolution of SharePoint
Event Receivers from
On-Prem to the Cloud
@ITProCamp
February 21st, 2015
Timothy Ferro
Please Join Us In Thanking Our Sponsors
© 2014 RDA Corporation. All rights reserved.
Please Connect with Your
Education & User Community
http://www.meetup.com/MFCF-DC/
DC)
(Mobile-First, Cloud-First
© 2014 RDA Corporation. All rights reserved.
Hey Don’t Forget!!
 Microsoft Careers is Onsite Today – Microsoft is hiring!
 The Microsoft Clinic is on 7th Floor, Room 7063 - Sign-in
and Connect with an SME for wide range of technologies
 Lunch is on the 7th Floor Break Area 12:30
 Make Sure You Stay for the Raffle on the 7th Floor, Rooms
7023/7027/7032 Combined!
 Make sure you have all of the blocks on your raffle ticket
stamped or signed
© 2014 RDA Corporation. All rights reserved.
Microsoft Ignite
May 4 – 8, 2015
Chicago, IL
Spark the future.
The best and brightest minds will all be in one place to
talk about cloud infrastructure and management,
productivity, big data, and the internet of things,
unified communications, mobility and more. Get
ready for a glimpse of what’s possible today and in the
future.
Microsoft Exchange + Lync + MMS + Project +
SharePoint + TechEd conferences = Microsoft Ignite
Register now
http://ignite.microsoft.com
© 2014 RDA Corporation. All rights reserved.
Get Social
Social media is one of the best ways to keep up-to-date with the latest event
news and buzz. Engage with Microsoft Ignite on the following channels:
Like us and Share on Facebook
http://www.facebook.com/MicrosoftIgnite
Follow us, RT and engage on Twitter
@MS_Ignite using #MSIgnite
Forum
Connect via the Forum:
http://channel9.msdn.com/Forums/MicrosoftIgnite
Follow us in the Office365 Ignite Event Group
https://www.yammer.com/itpronetwork/#/threads/i
nGroup?type=in_group&feedId=4589545
© 2014 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.
© 2014 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
© 2014 RDA Corporation. All rights reserved.
My Background
 Senior Software Engineer at RDA Corporation
 Senior SharePoint Developer / SharePoint Architect
 Author / Editor / Speaker / Blogger / Tweeter
 7+ Years Architecting and Developing SharePoint Solutions
 [email protected]
 www.timferro.com
 @timferro
© 2014 RDA Corporation. All rights reserved.
Publications
Technical Editor
White Paper Author
© 2014 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
 Synchronous vs. Asynchronous Events
 Binding Event Receivers
 Disabling Event Receivers
© 2014 RDA Corporation. All rights reserved.
SharePoint 2007 Event Receiver Type Enumeration
FieldAdding
FieldUpdating
FieldDeleting
SiteDeleting
WebDeleting
WebMoving
ItemAdding
ItemUpdating
ItemDeleting
ItemCheckingIn
ItemCheckingOut
ItemUncheckingOut
ItemAttachmentAdding
ItemAttachmentDeleting
ItemFileMoving
ContextEvent
InvalidReceiver
FeatureDeactivating
FeatureUninstalling
FieldAdded
FieldUpdated
FieldDeleted
SiteDeleted
WebDeleted
WebMoved
ItemAdded
ItemUpdated
ItemDeleted
ItemCheckedIn
ItemCheckedOut
ItemUncheckedOut
ItemAttachmentAdded
ItemAttachmentDeleted
ItemFileMoved
ItemFileConverted
EmailReceived
FeatureActivated
FeatureInstalled
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.12).aspx
© 2014 RDA Corporation. All rights reserved.
SharePoint 2010 Event Receiver Type Enumeration
FieldAdding
FieldUpdating
FieldDeleting
SiteDeleting
WebDeleting
WebMoving
ItemAdding
ItemUpdating
ItemDeleting
ItemCheckingIn
ItemCheckingOut
ItemUncheckingOut
ItemAttachmentAdding
ItemAttachmentDeleting
ItemFileMoving
ContextEvent
InvalidReceiver
FeatureDeactivating
FeatureUninstalling
FieldAdded
FieldUpdated
FieldDeleted
SiteDeleted
WebDeleted
WebMoved
ItemAdded
ItemUpdated
ItemDeleted
ItemCheckedIn
ItemCheckedOut
ItemUncheckedOut
ItemAttachmentAdded
ItemAttachmentDeleted
ItemFileMoved
ItemFileConverted
EmailReceived
FeatureActivated
FeatureInstalled
ListAdding
ListDeleting
WebAdding
ListAdded
ListDeleted
WebProvisioned
WorkflowStarting
WorkflowStarted
WorkflowPostponed
WorkflowCompleted
FeatureUpgrading
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.14).aspx
© 2014 RDA Corporation. All rights reserved.
SharePoint 2013 Event Receiver Type Enumeration
FieldAdding
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
WorkflowCompleted
RoleAssignmentDeleting
RoleAssignmentDeleted
ItemCheckingOut
ItemCheckedOut
FeatureUpgrading
InheritanceBreaking
InheritanceBroken
ItemUncheckingOut
ItemUncheckedOut
InheritanceResetting
InheritanceReset
ItemAttachmentAdding
ItemAttachmentAdded
AppInstalled
EntityInstanceAdded
ItemAttachmentDeleting
ItemAttachmentDeleted
AppUpgraded
EntityInstanceUpdated
ItemFileMoving
ItemFileMoved
AppUninstalling
EntityInstanceDeleted
ContextEvent
ItemFileConverted
ItemVersionDeleting
InvalidReceiver
EmailReceived
ItemVersionDeleted
FeatureDeactivating
FeatureActivated
FeatureUninstalling
FeatureInstalled
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceivertype(v=office.15).aspx
© 2014 RDA Corporation. All rights reserved.
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.
 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.
Hosting model
Support for remote
event receivers
Auto-hosted
Yes
Provider-hosted
Yes
SharePointhosted
No
http://msdn.microsoft.com/en-us/library/office/dn456315.aspx
© 2014 RDA Corporation. All rights reserved.
SharePoint 2013 Remote Event Receiver Type Enum
FieldAdding
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
WorkflowCompleted
RoleAssignmentDeleting
RoleAssignmentDeleted
ItemCheckingOut
ItemCheckedOut
FeatureUpgrading
InheritanceBreaking
InheritanceBroken
ItemUncheckingOut
ItemUncheckedOut
InheritanceResetting
InheritanceReset
ItemAttachmentAdding
ItemAttachmentAdded
AppInstalled
EntityInstanceAdded
ItemAttachmentDeleting
ItemAttachmentDeleted
AppUpgraded
EntityInstanceUpdated
ItemFileMoving
ItemFileMoved
AppUninstalling
EntityInstanceDeleted
ContextEvent
ItemFileConverted
ItemVersionDeleting
InvalidReceiver
EmailReceived
ItemVersionDeleted
FeatureDeactivating
FeatureActivated
FeatureUninstalling
FeatureInstalled
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.remoteapp.spremoteeventtype.aspx
© 2014 RDA Corporation. All rights reserved.
WebRestored
Demo: SharePoint 2013 Event Receiver
 SharePoint 2013
 Setting up SharePoint Event Receiver Solutions
 Feature Activation Code
 Event Receiver Code
 Event Receiver Examples
© 2014 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/enus/library/microsoft.sharepoint.spitemeventreceiver.aspx
http://msdn.microsoft.com/en-us/library/office/dn456315.aspx
http://www.learningsharepoint.com/2012/12/27/create-a-groupuseraddedeventreceiverspsecurityeventreceiver-in-sharepoint-2013/
© 2014 RDA Corporation. All rights reserved.
Tim Ferro
 Senior Software Engineer at RDA Corporation
 Senior SharePoint Developer / SharePoint Architect
 Author / Editor / Speaker / Blogger / Tweeter
 7+ Years Architecting and Developing SharePoint Solutions
 [email protected]
 www.timferro.com
 @timferro
© 2014 RDA Corporation. All rights reserved.

similar documents