Calendar list events - can't set to recur every x years?
Am I missing something obvious or can you really not enter a recurrenct pattern of 'every x years' where x could be 2,3,4 etc for calendar list events? You can enter a recurrence of every 2 days, weeks, months so why not years?? I know that one solution would be to use months and enter a recurrence of 24, 36 etc months (although I haven't tried and tested this) but it just seems like another annoying piece of functionality that was forgotten about when designing this particular type of list.
April 12th, 2010 11:38am

Hi there. Well, if setting the recurrence of 24,36,48.. months doesn't do it, you can always make a custom list and add the functionality in code. The code for creating an event that re-ocurr every other year is something like this: SPList list = web.Lists["Test Calendar"]; SPListItem item = list.Items.Add(); item["Title"] = "Test item"; string recData = @" <recurrence> <rule> <firstDayOfWeek>mo</firstDayOfWeek> <repeat> <yearly yearFrequency='2' month='1' day='5'/> </repeat> <repeatForever>TRUE></repeatForever> </rule> </reurrence>"; item["RecurrenceData"] = recData; item["EventType"] = 1; item["UID"] = System.Guid.NewGuid(); item["Recurrence"] = -1; item["EventDate"] = new DateTime(2010, 1, 1, 8, 0, 0); item["EndDate"] = new DateTime(2020, 1, 1, 10, 0, 0); item["Recurrence"] = -1; item.Update(); I have verified this, and it creates an item that indeed occurs every other year. Hope this helps. Regards, Magnus My blog: InsomniacGeek.com
Free Windows Admin Tool Kit Click here and download it now
April 12th, 2010 1:10pm

Thanks for your response Magnus. I am aware that this can be accomplished by using a custom list and code but wanted to ask/confirm that this functionality was actually missing OOTB. It was brought to my attention by a few of our users and this list has been in use for 6 months now so didn't really want to go and set up a new custom list. I've had to do so many workarounds for the calendar list already - I really hope this type of list has been improved in SharePoint 2010. The months workaround should work but if not I can look at creating a custom list and migrating the data across. Mike, I didn't realise having 2 question marks in the title was so offensive! A thousand aplologies. Also, I asked this question less than 24 hours ago and the only reply I received was proposed and then marked as an answer by Paul and Mike before I had even read the reply myself - although grateful for Magnus' response, I was hoping to see if anyone else had any other input. Thanks Nicky
April 13th, 2010 11:14am

Update on this - you can't set a month frequency greater than 12 so this workaround won't work. Therefore, it appears that it is impossible to set a recurring event for every x years (or even for every 18 months for example) through the UI. However, having a year frequency greater than 1 is possible programmtically so I I have no idea why SharePoint would omit this functionality through the front end. If custom code is used, this will only generate recurring tasks for the next 2 years so I'm at a loss either way. Anyone else got any ideas? Thanks Nicky
Free Windows Admin Tool Kit Click here and download it now
May 19th, 2010 6:30pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics