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! We’re reviewing your suggestion.
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
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
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.