1 / 10

Building and Debugging SharePoint Timer Jobs

Building and Debugging SharePoint Timer Jobs. July 2013. Agenda. Introductions. Timer Job Overview. Example Walkthrough. Discussion. Wrap-Up & Next Steps. John Ramminger. Principal Consultant, SharePoint Development Team Lead. Email: JohnR@Intellinet.com. Twitter: @ JohnRam.

tammy
Télécharger la présentation

Building and Debugging SharePoint Timer Jobs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Building and Debugging SharePoint Timer Jobs July 2013

  2. Agenda Introductions Timer Job Overview Example Walkthrough Discussion Wrap-Up & Next Steps

  3. John Ramminger Principal Consultant, SharePoint Development Team Lead Email: JohnR@Intellinet.com Twitter: @JohnRam Linked In: http://linkedin.com/in/JohnRamminger

  4. Timer Job Overview • Scheduled tasks that run in the background of a SharePoint Farm • Can be run scheduled to run from once to yearly • Microsoft.SharePoint.SPDailyScheduleMicrosoft.SharePoint.SPHourlyScheduleMicrosoft.SharePoint.SPMinuteScheduleMicrosoft.SharePoint.SPMonthlySchedule • Microsoft.SharePoint.SPYearlySchedule • Microsoft.SharePoint.SPOneTimeSchedule • Can be pinned to one server in a farm or allowed to run on all application and web front end servers. • Have built in administration pages to monitor and update the timer jobs and their schedules. • Run under one windows process called OWSTIMER.EXE

  5. Custom SharePoint Timer Job Examples 1 Synchronize Data Between SharePoint and External Systems or other SharePoint Farms Complete processes that run to long to complete via other methods (site provisioning, multiple workflows ) 2 Start Workflows based on item state or time stamp 3 Cleanup items that need to be removed. (Cache Document Library) 4 Notification System that is based on custom queries to only notify users when specific criteria is met, rather than every time an item is updated. 5

  6. Timer Job Example Overview • Custom Timer Job and Configuration List allows for customization by the SharePoint Administrator. • Uses common components to ensure flexibility. • Custom Notifications and Recycling of Items. • Application Page allows for easy debugging of solution.

  7. Time for the Good Stuff! Code DEMO and Walk Through

  8. Tools Used in Demo Example • These tools allow me to increase my productivity and decrease my frustration when developing for SharePoint. • SharePoint Log Viewer: http://sharepointlogviewer.codeplex.com/ • CKSDEV: http://bit.ly/1aF2EhL • CodeRush: https://www.devexpress.com/Products/CodeRush/ • SharePoint Manager: http://spm.codeplex.com/ • Code Rush Alternative: AutoHotKey

  9. Hints for SharePoint Farm Development • Merge-SPLogFile

  10. Q&A Time • John Ramminger (JohnR@Intellinet.Com) • @JohnRam on Twitter • Download the Example Timer Solution Here: • http://sdrv.ms/1e83UgQ Thank you for your time!

More Related