New answers tagged timer-jobs
First off, read this article: Create and Deploy Custom Timer Job Definition in SharePoint Programatically It's a good beginners guid, taking you through the steps of creating a timerjob, what code goes where, and how to deploy the timerjob properly. All the code for deleting stuff about the employee should go in the Execute method. A good step-by-step ...
Alex, I think it's going to depend on when you need the recurring task to execute. If you're okay with it running on a timescale (e.g. hourly, daily, etc), you can use Timer jobs. If you need to be based on an activity (e.g. list item updates), then you'll need go with a workflow or event receiver. For a daily recurring task, you can go with a single Timer ...
This is farm scoped Timer job, so you need to run the below command inorder to get deleted job back. $farm = Get-SPFarm $farm.TimerService.EnsureDefaultJobs() But if you have the Web app target jobs then runt he below one. $w = Get-SPWebApplication https://mywebapplication $w.EnsureDefaultJobs()
I've found the solution, so I'm posting it in case someone else has the same problem. It turns out I wasn't getting all the job-definitions in the system after all - I still had to check the job definitions for available web sites. Here's the code: jobs.AddRange(SPWebService.ContentService.WebApplications.SelectMany(wa => wa.JobDefinitions)); ...
I'm sure you found a solution by now but this post is most helpful: http://www.attunix.com/about/blog/2013/october/17/sharepoint-2010-daily-reminder-loop/. I used it as a basis to get reminder e-mails when an item is 3 days from due date and 1 day from due date, along with notification for new items, item changes, and item closure.
Top 50 recent answers are included