Hi I am Going to Explain you here how to get Recurrence Event From your Sharepoint Calender List Using Client Object model(CSOM) Getting Recurrence Event From List using Server OM is bit eassy as Below
SPQuery query = new SPQuery(); query.ExpandRecurrence = true; query.Query = String.Format( "" + "" + "" + "", Fields.StartDate, Fields.EndDate, Fields.RecurrenceId, orderBy);
Now Coming on CSOM-
- The problem with recurrence is that there is only a single list item. The recurrence information is stored inside a hidden field of that list item called ‘RecurrenceData’ as XML that gets calculated out. Unfortunately Microsoft.SharePoint.Client.CamlQuery doesn’t have the properties that SPQuery does in the server object model to transform this information.
- What is a little more frustrating is that the new OData operations through REST do not support the DateTimeRangesOverlap operator or “querying as to whether a date time falls inside a recurrent date time pattern
But Nothing is impossible…….. Final way is call old-fashion List.asmx.
- There was a way to call Lists.asmx in versions before 2013 using SOAP and pass an entire XML message which would allow you to use the DateRangesOverlap filter in the query, and allow you to pass QueryOptions that would include ExpandRecurrence and CalendarDate, but it was flaky trying to pass an actual datetime value for CalendarDate as the value to check if the event overlaps with.
hope you GET expected Solutions
Happy Coding Thanks SPS