SlideShare a Scribd company logo
1 of 7
SHAREPOINT 2010
EVENT RECEIVERS
FEDSPUG – Washington, DC




                           SharePoint Development
                                  January 5 th , 2012
                                    Timothy Ferro
Agenda
 My Background
 Overview of SharePoint 2010 Event Receivers
 Focus on List Item Events
 Demo
 References
My Background
 SharePoint Architect / Senior Developer
 Booz Allen Hamilton
 4+ Years Developing MOSS 2007 and SharePoint
  2010 Solutions
 Specializing in List Item Event Receivers, jQuery,
  and Mapping Web Parts
 www.timferro.com
 @timferro
Overview of SharePoint 2010 Event Receivers
 Main Types: Site Collection, Web, List, Field, Item,
    and Workflow
   Main Events: Creation, Update, Deletion,
    Modification, Conversion, Attachment
   Synchronous vs. Asynchronous
   Binding Event Receivers
   Disabling
Focus on List Item Events
Event Receiver Base Class    Supported Events
SPItemEventReceiver          ItemAdding
                             ItemAdded
Available Event Host Types   ItemDeleting
SPSite                       ItemDeleted
SPWeb                        ItemUpdating
SPList                       ItemUpdated
SPContentType                ItemFileConverted
                             ItemFileMoving
                             ItemFileMoved
                             ItemCheckingIn
                             ItemCheckedIn
                             ItemCheckingOut
                             ItemCheckedOut
                             ItemAttachmentAdding
                             ItemAttachmentAdded
                             ItemAttachmentDeleting
                             ItemAttachmentDeleted
Demo
 Setting up SharePoint 2010 Event Receiver Solution
 Feature Activation Code
 Event Receiver Code
 Event Receiver Examples
   Update Fields
   Validate Data
   Check Permissions
   Alerts and Emails
   “Workflow”
   Create Sites/Lists/Folders/Items
References
 timothy.ferro@gmail.com
 www.timferro.com
 @timferro
 http://msdn.microsoft.com/en-
  us/library/gg749858.aspx
 http://msdn.microsoft.com/en-
  us/library/gg981880.aspx
 http://msdn.microsoft.com/en-
  us/library/microsoft.sharepoint.spitemeventreceiv
  er.aspx

More Related Content

What's hot

Build killer visuals to interact with your content using Search and Display T...
Build killer visuals to interact with your content using Search and Display T...Build killer visuals to interact with your content using Search and Display T...
Build killer visuals to interact with your content using Search and Display T...ShareGate
 
SharePoint 2010 - InfoPath, Workflow
SharePoint 2010 - InfoPath, WorkflowSharePoint 2010 - InfoPath, Workflow
SharePoint 2010 - InfoPath, WorkflowJonathon Schultz
 
How to Change the search results are displayed
How to Change the search results are displayedHow to Change the search results are displayed
How to Change the search results are displayedShareGate
 
Build Killer Visuals with SharePoint 2013 Search & Display Templates
Build Killer Visuals with SharePoint 2013 Search & Display TemplatesBuild Killer Visuals with SharePoint 2013 Search & Display Templates
Build Killer Visuals with SharePoint 2013 Search & Display TemplatesBenjamin Niaulin
 
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...Mark Rackley
 
SharePoint for ASP.Net Developers
SharePoint for ASP.Net DevelopersSharePoint for ASP.Net Developers
SharePoint for ASP.Net DevelopersGreg Hurlman
 
Developing Search-driven application in SharePoint 2013
 Developing Search-driven application in SharePoint 2013  Developing Search-driven application in SharePoint 2013
Developing Search-driven application in SharePoint 2013 SPC Adriatics
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsTessa Mero
 
Custom Applications - What, When, and Why
Custom Applications - What, When, and WhyCustom Applications - What, When, and Why
Custom Applications - What, When, and WhyGreg Hurlman
 
Website Integration with QuickBase - Joshua McGinnis
Website Integration with QuickBase - Joshua McGinnisWebsite Integration with QuickBase - Joshua McGinnis
Website Integration with QuickBase - Joshua McGinnisQuickBase, Inc.
 
1.2 introduction
1.2   introduction 1.2   introduction
1.2 introduction icdesktop
 
Web Apps for the Masses
Web Apps for the MassesWeb Apps for the Masses
Web Apps for the MassesDavid Tufts
 
2 workflows, search, disaster recovery
2   workflows, search, disaster recovery2   workflows, search, disaster recovery
2 workflows, search, disaster recoveryicdesktop
 
3 lists, libraries, share point designer, business intelligence
3   lists, libraries, share point designer, business intelligence3   lists, libraries, share point designer, business intelligence
3 lists, libraries, share point designer, business intelligenceicdesktop
 
What is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaWhat is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaEdureka!
 
SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesMark Rackley
 
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointMark Rackley
 
Kql and the content search web part
Kql and the content search web part Kql and the content search web part
Kql and the content search web part InnoTech
 
Checking Google Index Status at Scale using Node.js - Jose Hernando - Brighto...
Checking Google Index Status at Scale using Node.js - Jose Hernando - Brighto...Checking Google Index Status at Scale using Node.js - Jose Hernando - Brighto...
Checking Google Index Status at Scale using Node.js - Jose Hernando - Brighto...Jose Luis Hernando Sanz
 

What's hot (20)

Build killer visuals to interact with your content using Search and Display T...
Build killer visuals to interact with your content using Search and Display T...Build killer visuals to interact with your content using Search and Display T...
Build killer visuals to interact with your content using Search and Display T...
 
SharePoint 2010 - InfoPath, Workflow
SharePoint 2010 - InfoPath, WorkflowSharePoint 2010 - InfoPath, Workflow
SharePoint 2010 - InfoPath, Workflow
 
How to Change the search results are displayed
How to Change the search results are displayedHow to Change the search results are displayed
How to Change the search results are displayed
 
Build Killer Visuals with SharePoint 2013 Search & Display Templates
Build Killer Visuals with SharePoint 2013 Search & Display TemplatesBuild Killer Visuals with SharePoint 2013 Search & Display Templates
Build Killer Visuals with SharePoint 2013 Search & Display Templates
 
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
 
SharePoint for ASP.Net Developers
SharePoint for ASP.Net DevelopersSharePoint for ASP.Net Developers
SharePoint for ASP.Net Developers
 
Developing Search-driven application in SharePoint 2013
 Developing Search-driven application in SharePoint 2013  Developing Search-driven application in SharePoint 2013
Developing Search-driven application in SharePoint 2013
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple Steps
 
Custom Applications - What, When, and Why
Custom Applications - What, When, and WhyCustom Applications - What, When, and Why
Custom Applications - What, When, and Why
 
Website Integration with QuickBase - Joshua McGinnis
Website Integration with QuickBase - Joshua McGinnisWebsite Integration with QuickBase - Joshua McGinnis
Website Integration with QuickBase - Joshua McGinnis
 
1.2 introduction
1.2   introduction 1.2   introduction
1.2 introduction
 
Web Apps for the Masses
Web Apps for the MassesWeb Apps for the Masses
Web Apps for the Masses
 
2 workflows, search, disaster recovery
2   workflows, search, disaster recovery2   workflows, search, disaster recovery
2 workflows, search, disaster recovery
 
3 lists, libraries, share point designer, business intelligence
3   lists, libraries, share point designer, business intelligence3   lists, libraries, share point designer, business intelligence
3 lists, libraries, share point designer, business intelligence
 
What is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaWhat is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | Edureka
 
SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery Libraries
 
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
 
Kql and the content search web part
Kql and the content search web part Kql and the content search web part
Kql and the content search web part
 
Checking Google Index Status at Scale using Node.js - Jose Hernando - Brighto...
Checking Google Index Status at Scale using Node.js - Jose Hernando - Brighto...Checking Google Index Status at Scale using Node.js - Jose Hernando - Brighto...
Checking Google Index Status at Scale using Node.js - Jose Hernando - Brighto...
 
Functional UI Testing
Functional UI TestingFunctional UI Testing
Functional UI Testing
 

Viewers also liked

Organizzazione servizi per contrastare il disagio abitativo
Organizzazione servizi per contrastare il disagio abitativo Organizzazione servizi per contrastare il disagio abitativo
Organizzazione servizi per contrastare il disagio abitativo Mauro Ferri
 
The forest of dean
The forest of deanThe forest of dean
The forest of deanrachelsimmo
 
L'evoluzione dell'informazione nell'era digitale
L'evoluzione dell'informazione nell'era digitaleL'evoluzione dell'informazione nell'era digitale
L'evoluzione dell'informazione nell'era digitaleMargherita Acierno
 
PSU IST443 Nov 2009
PSU IST443 Nov 2009PSU IST443 Nov 2009
PSU IST443 Nov 2009Tim Ferro
 
Respuestas del examen de diagnóstico de computación
Respuestas del examen de diagnóstico de computaciónRespuestas del examen de diagnóstico de computación
Respuestas del examen de diagnóstico de computaciónJennifer Montano
 

Viewers also liked (8)

Organizzazione servizi per contrastare il disagio abitativo
Organizzazione servizi per contrastare il disagio abitativo Organizzazione servizi per contrastare il disagio abitativo
Organizzazione servizi per contrastare il disagio abitativo
 
The forest of dean
The forest of deanThe forest of dean
The forest of dean
 
L'evoluzione dell'informazione nell'era digitale
L'evoluzione dell'informazione nell'era digitaleL'evoluzione dell'informazione nell'era digitale
L'evoluzione dell'informazione nell'era digitale
 
Seikilos
SeikilosSeikilos
Seikilos
 
Opendata
OpendataOpendata
Opendata
 
PSU IST443 Nov 2009
PSU IST443 Nov 2009PSU IST443 Nov 2009
PSU IST443 Nov 2009
 
A04
A04A04
A04
 
Respuestas del examen de diagnóstico de computación
Respuestas del examen de diagnóstico de computaciónRespuestas del examen de diagnóstico de computación
Respuestas del examen de diagnóstico de computación
 

Similar to FEDSPUG 2012: SharePoint 2010 Event Receivers

From Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint WebhooksFrom Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint WebhooksAndré Vala
 
SharePoint Saturday Workflow in Action
SharePoint Saturday Workflow in ActionSharePoint Saturday Workflow in Action
SharePoint Saturday Workflow in ActionElaine Van Bergen
 
From Event Receivers to SharePoint Webhooks (SPS Lisbon 2017)
From Event Receivers to SharePoint Webhooks (SPS Lisbon 2017)From Event Receivers to SharePoint Webhooks (SPS Lisbon 2017)
From Event Receivers to SharePoint Webhooks (SPS Lisbon 2017)André Vala
 
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기lanslote
 
SharePoint Silverlight Sandboxed solutions
SharePoint Silverlight Sandboxed solutionsSharePoint Silverlight Sandboxed solutions
SharePoint Silverlight Sandboxed solutionsPhil Wicklund
 
From Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint WebhooksFrom Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint WebhooksAndré Vala
 
The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010Geoff Varosky
 
Suguk activity feed
Suguk activity feedSuguk activity feed
Suguk activity feedWes Hackett
 
SharePoint - Right Intro To Development
SharePoint - Right Intro To DevelopmentSharePoint - Right Intro To Development
SharePoint - Right Intro To DevelopmentMark Rackley
 
SharePoint 2010 and Changing Business Needs-MAJU 2011
SharePoint 2010 and Changing Business Needs-MAJU 2011SharePoint 2010 and Changing Business Needs-MAJU 2011
SharePoint 2010 and Changing Business Needs-MAJU 2011Shakir Majeed Khan
 
Paris Salesforce Developer Group - 16 09 2014 - Summer '14
Paris Salesforce Developer Group - 16 09 2014 - Summer '14Paris Salesforce Developer Group - 16 09 2014 - Summer '14
Paris Salesforce Developer Group - 16 09 2014 - Summer '14Paris Salesforce Developer Group
 
Creating No Code Solutions For Sp 2010 Ayman El Hattab
Creating No Code Solutions For Sp 2010   Ayman El HattabCreating No Code Solutions For Sp 2010   Ayman El Hattab
Creating No Code Solutions For Sp 2010 Ayman El HattabAyman El-Hattab
 
Integrating Your Site With Internet Explorer 8
Integrating Your Site With Internet Explorer 8Integrating Your Site With Internet Explorer 8
Integrating Your Site With Internet Explorer 8goodfriday
 
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint FilesECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint FilesEuropean Collaboration Summit
 
Creating Custom Actions within SharePoint
Creating Custom Actions within SharePointCreating Custom Actions within SharePoint
Creating Custom Actions within SharePointGeoff Varosky
 
SharePoint 2010- Changing business needs
SharePoint 2010- Changing business needsSharePoint 2010- Changing business needs
SharePoint 2010- Changing business needsShakir Majeed Khan
 
Building the SharePoint hot or not app ... or how not sell social to your boss
Building the SharePoint hot or not app ... or how not sell social to your bossBuilding the SharePoint hot or not app ... or how not sell social to your boss
Building the SharePoint hot or not app ... or how not sell social to your bossJoris Poelmans
 
Global SharePoint Users Group 1/5/10 - Creating Custom Actions Within SharePoint
Global SharePoint Users Group 1/5/10 - Creating Custom Actions Within SharePointGlobal SharePoint Users Group 1/5/10 - Creating Custom Actions Within SharePoint
Global SharePoint Users Group 1/5/10 - Creating Custom Actions Within SharePointGeoff Varosky
 
Workflow in SharePoint 2010
Workflow in SharePoint 2010Workflow in SharePoint 2010
Workflow in SharePoint 2010barryboudreau
 

Similar to FEDSPUG 2012: SharePoint 2010 Event Receivers (20)

From Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint WebhooksFrom Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint Webhooks
 
Sharepoint Online
Sharepoint OnlineSharepoint Online
Sharepoint Online
 
SharePoint Saturday Workflow in Action
SharePoint Saturday Workflow in ActionSharePoint Saturday Workflow in Action
SharePoint Saturday Workflow in Action
 
From Event Receivers to SharePoint Webhooks (SPS Lisbon 2017)
From Event Receivers to SharePoint Webhooks (SPS Lisbon 2017)From Event Receivers to SharePoint Webhooks (SPS Lisbon 2017)
From Event Receivers to SharePoint Webhooks (SPS Lisbon 2017)
 
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
 
SharePoint Silverlight Sandboxed solutions
SharePoint Silverlight Sandboxed solutionsSharePoint Silverlight Sandboxed solutions
SharePoint Silverlight Sandboxed solutions
 
From Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint WebhooksFrom Event Receivers to SharePoint Webhooks
From Event Receivers to SharePoint Webhooks
 
The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010The Ribbon UI and Custom Actions in SharePoint 2010
The Ribbon UI and Custom Actions in SharePoint 2010
 
Suguk activity feed
Suguk activity feedSuguk activity feed
Suguk activity feed
 
SharePoint - Right Intro To Development
SharePoint - Right Intro To DevelopmentSharePoint - Right Intro To Development
SharePoint - Right Intro To Development
 
SharePoint 2010 and Changing Business Needs-MAJU 2011
SharePoint 2010 and Changing Business Needs-MAJU 2011SharePoint 2010 and Changing Business Needs-MAJU 2011
SharePoint 2010 and Changing Business Needs-MAJU 2011
 
Paris Salesforce Developer Group - 16 09 2014 - Summer '14
Paris Salesforce Developer Group - 16 09 2014 - Summer '14Paris Salesforce Developer Group - 16 09 2014 - Summer '14
Paris Salesforce Developer Group - 16 09 2014 - Summer '14
 
Creating No Code Solutions For Sp 2010 Ayman El Hattab
Creating No Code Solutions For Sp 2010   Ayman El HattabCreating No Code Solutions For Sp 2010   Ayman El Hattab
Creating No Code Solutions For Sp 2010 Ayman El Hattab
 
Integrating Your Site With Internet Explorer 8
Integrating Your Site With Internet Explorer 8Integrating Your Site With Internet Explorer 8
Integrating Your Site With Internet Explorer 8
 
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint FilesECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
ECS19 - Mike Ammerlaan - Integrate with OneDrive and SharePoint Files
 
Creating Custom Actions within SharePoint
Creating Custom Actions within SharePointCreating Custom Actions within SharePoint
Creating Custom Actions within SharePoint
 
SharePoint 2010- Changing business needs
SharePoint 2010- Changing business needsSharePoint 2010- Changing business needs
SharePoint 2010- Changing business needs
 
Building the SharePoint hot or not app ... or how not sell social to your boss
Building the SharePoint hot or not app ... or how not sell social to your bossBuilding the SharePoint hot or not app ... or how not sell social to your boss
Building the SharePoint hot or not app ... or how not sell social to your boss
 
Global SharePoint Users Group 1/5/10 - Creating Custom Actions Within SharePoint
Global SharePoint Users Group 1/5/10 - Creating Custom Actions Within SharePointGlobal SharePoint Users Group 1/5/10 - Creating Custom Actions Within SharePoint
Global SharePoint Users Group 1/5/10 - Creating Custom Actions Within SharePoint
 
Workflow in SharePoint 2010
Workflow in SharePoint 2010Workflow in SharePoint 2010
Workflow in SharePoint 2010
 

FEDSPUG 2012: SharePoint 2010 Event Receivers

  • 1. SHAREPOINT 2010 EVENT RECEIVERS FEDSPUG – Washington, DC SharePoint Development January 5 th , 2012 Timothy Ferro
  • 2. Agenda  My Background  Overview of SharePoint 2010 Event Receivers  Focus on List Item Events  Demo  References
  • 3. My Background  SharePoint Architect / Senior Developer  Booz Allen Hamilton  4+ Years Developing MOSS 2007 and SharePoint 2010 Solutions  Specializing in List Item Event Receivers, jQuery, and Mapping Web Parts  www.timferro.com  @timferro
  • 4. Overview of SharePoint 2010 Event Receivers  Main Types: Site Collection, Web, List, Field, Item, and Workflow  Main Events: Creation, Update, Deletion, Modification, Conversion, Attachment  Synchronous vs. Asynchronous  Binding Event Receivers  Disabling
  • 5. Focus on List Item Events Event Receiver Base Class Supported Events SPItemEventReceiver ItemAdding ItemAdded Available Event Host Types ItemDeleting SPSite ItemDeleted SPWeb ItemUpdating SPList ItemUpdated SPContentType ItemFileConverted ItemFileMoving ItemFileMoved ItemCheckingIn ItemCheckedIn ItemCheckingOut ItemCheckedOut ItemAttachmentAdding ItemAttachmentAdded ItemAttachmentDeleting ItemAttachmentDeleted
  • 6. Demo  Setting up SharePoint 2010 Event Receiver Solution  Feature Activation Code  Event Receiver Code  Event Receiver Examples  Update Fields  Validate Data  Check Permissions  Alerts and Emails  “Workflow”  Create Sites/Lists/Folders/Items
  • 7. References  timothy.ferro@gmail.com  www.timferro.com  @timferro  http://msdn.microsoft.com/en- us/library/gg749858.aspx  http://msdn.microsoft.com/en- us/library/gg981880.aspx  http://msdn.microsoft.com/en- us/library/microsoft.sharepoint.spitemeventreceiv er.aspx