Join Robert Bogue for an in-depth discussion in this video Engaging with event receivers, part of Developing SharePoint Full Trust Solutions for SharePoint 2013.
- One important decision to make about execution is…whether you should use an event receiver…or whether you should use a workflow.…If you look at event receivers,…they can be either synchronous or asynchronous…they can run in line, they can abort code,…or they can run slightly after an update is made.…Event receivers are and must be lightweight,…if they're running in line with the user's operation…they have to happen quickly,…and because bulk operations also apply…to event receivers, you have to be able to run them…quickly enough that you don't cause Sharepoint to time out.…
Because they're lightweight, they're generally fast.…But one issue is, event receivers are not guaranteed,…which means you can't build a system…entirely assuming that every event receiver…will fire 100% of the time.…You have to assume that from time to time…an event receiver won't fire.…Now it's pretty rare, because it only happens…in situations when Sharepoint's very overloaded,…and might be out of memory,…but you do have to take the risk…
If you've wanted to learn how to develop custom solutions on SharePoint—or you've been told that you need to develop a solution that integrates with SharePoint—this is the training you need. It's quick, to the point, and effective at helping new developers work with SharePoint code.
Robert Bogue shows how to create new web parts, access and update data in SharePoint, work with files, and create SharePoint artifacts: lists and libraries to store data, site-level features, files, etc. He also shows how to create sandbox solutions that do not affect the rest of the server environment, and discusses execution options for solutions, including in-page, quasi-page, and out-of-page execution.
- Define web parts.
- Explain how to interact with a web part.
- Recall how to help determine what declarative code and user code is.
- Identify which object allows you to get data from more than one list.
- Identify what class timer jobs are derived from.
- Recognize different types of event receivers.