Join Robert Bogue for an in-depth discussion in this video Tinkering with SharePoint timer jobs, part of Developing SharePoint Full Trust Solutions for SharePoint 2013.
- Let's take a look at timer jobs…as an option for execution.…Well first, when and where can a timer job run?…Well, it can run once or it can run on a schedule,…and it can either run per web application…or it can run per server, so if there are things…that you need to happen on every server,…you can use a timer job to do that,…or if you have things that need to happen…for each web application, a timer job can be a good choice.…Timer jobs derive from the class SPJobDefinition…and other than overriding Execute…and a few other properties, timer jobs aren't…that complicated to implement.…
Let's take a look at how we can create a timer job…that can run inside of SharePoint.…Now, to start, we need to talk about a problem…and the problem is that inside of newer versions…of the Windows operating system, you cannot refer…to the server with a name other than server…when you're making a call back to it.…It fails security evaluation, and that's on the LSA…and they call this LSA loopback, so we're going…to fix that by using a timer job.…
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.
- Developing a web part
- Connecting and configuring web parts
- Building sandboxed code
- Choosing an access method for SharePoint data
- Querying with CAML
- Fetching files
- Updating SharePoint data
- Creating and provisioning artifacts
- Executing long-running operations
- Tinkering with timer jobs
- Understanding SharePoint execution workflow