Skip to main content
 
Go Search
Home
Categories
Bloggers
Retreiving Recurring Events from a SharePoint Calendar list
By: Thomas DuPont | Posted: June 15, 2009 at 10:23 AM

I thought it would be useful to post an entry on how to retrieve recurring events from a calendar list. If you ever had to display recurring events, you probably noticed no list items are created for those events in the calendar list.

In order to display those items, I had to do a bit of digging... I noticed that the "Current Events" view from the calendar list would display those recurring events giving the illusion that they were actual unique list items.

Using SharePoint Solution Generator 2008 (as part of the extension for Visual Studio 2008 that can be downloaded here), I extracted the schema.xml that includes all the views including the "Current Events" to see how those events were being retrieved:

The RecurrenceID field identifies a specific instance of a recurring event and its value represents the starting date and time of a specific instance.

In my code, I re-used the query from the view and set as well the SPQuery.ExpandRecurrence property to true:


  Comments   Add Comment   Share It  
  Your Name:
  Your Email: **will not be displayed
  Comment Title:
* Comments:
  If you cannot read the code, please
click here to get a new one. You won't
lose your comments by doing so.
* Security Code:
   
  
  
* Your Name:
* Your Email: **will not be displayed
* Recipient's Email:
* Subject:
  If you cannot read the code, please
click here to get a new one. You won't
lose your comments by doing so.
* Security Code:
  
  
  
 

 About Thomas DuPont

ConsultantThomas DuPont is a consultant for PointBridge. Thomas has deep experience in the SharePoint practice and prior to PointBridge was a lead developer for a Chicago-area company on a multilingual SharePoi... [more]

 Tag Cloud

 External Links

 ‭(Hidden)‬ Admin Links