Provide CSOM and REST API for recurring calendar events
There is no obvious way to get details about a recurring calendar events through the CSOM or REST API.
When querying a calendar list only one item is returned for the calendar recurrence item. Only one field identifies this is a recurring item. the fOccurrence field is a boolean field.
When using the server side object model, properties are available to expand recurring calendar events to get the individual recurring items.
The only way to do this for client applications is to go back to using list.asmx which is not great and I'm not sure how long this will be supported.
Not having this makes the use of calendar lists in apps (SharePoint hosted, Display Templates and Client Side Rendering) useless.
Thanks for your feedback! Although we appreciate your time and effort to give us this feedback, it’s not something we’re planning to do right now. We are targeting our API efforts on the Graph API side and due to internal prioritize are not planning to allocate resources to new CSOM capabilities.
If this capability is important for you in the Office 365 platform, we do recommend submitting a specific requests towards Microsoft Graph API changes to address the possible gap.
17 commentsComments are closed
Doug Punchak commented
Please provide this functionality. Using old technology just so we can accurately get ALL upcoming events is not ideal.
Derk van Lochem commented
Any update on this one?
Last updated by the SP Dev Team almost 2 years ago, very disappointing. This missing piece makes it almost impossible to tap into SharePoint Calendars through the new Events Web Part, MS Flow, etc.
Robert Ritchie commented
Another request for this to be addressed. A date range resulting in a collection of events including recurring events within the range, please.
Dan Russell commented
In addition, please provide the ability to filter events between dates. The irony is that, one can add their own datetime fields to a calendar, assign them the same values as the Start Time/End Time fields, and filter events that way . . . but you can't do it with the ones native to the calendar!
Man, who made this decision?
Paul Colucci commented
This is insane. The fact that we can't get recurring events expanded in REST is unacceptable. This effects so many projects for my clients.
Ben Steinhauser commented
We need this added to the set of APIs. My team architects almost lost their minds when I had to explain that an Azure Function had to use SharePoint ASMX endpoints to expand recurring events in a calendar. Give us at least one API that will expand them outside of ASMX or SPOM (SharePoint Object Model). CSOM, REST, or even Microsoft Graph would be great if we could get this data out. Interestingly enough the Microsoft Graph API expands Outlook/Exchange recurring calendar events already out of beta in v1. It works as expected. If you could make sure the SharePoint endpoints have the same functionality it would go a long way.
Ben Steinhauser commented
Yes please, we need this added to the set of APIs. My team architects almost lost their minds when I had to explain that an Azure Function had to use SharePoint ASMX endpoints to expand recurring events in a calendar. Give us at least one API that will expand them outside of ASMX or SPOM (SharePoint Object Model). CSOM, REST, or even Microsoft Graph would be great if we could get this data out.
Funny enough the Microsoft Graph API expands Outlook/Exchange recurring calendar events already out of beta in v1. It work great. If they could make sure the SharePoint endpoints have the same functionality it would go a long way.
Looking forward to a solution sooner than later.
Eric Halsey commented
3 years and now thinking about it. Sheeesh
Michael Vasiloff commented
This idea seems to be more popular here: https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/15147117-provide-csom-and-rest-api-for-recurring-calendar-e
Dave Smith commented
Calendar list item Recurrence data is stored as an Xml document in the RecurrenceData FieldValue for the list item. It looks something like this:
//Recurring Event Every Sunday Forever
<weekly su="TRUE" weekFrequency="1" />
Parsing this Xml data is pretty straightforward.
Christopher Parker commented
You've got to be kidding me, Microsoft. This has been up here for over a year, is clearly addressing a MASSIVE functional hole in the REST API, has been posted and promoted by a recognized and respected leader in the community, and you guys can't even be bothered to RESPOND to it?
What sort of faith are we supposed to have in the User Voice process if this is the kind of stuff that goes on?
Andy Schutzman commented
The only way to expand SharePoint events from a calendar is using CAML. There should be a way to retrieve the recurring events fully expanded using REST.