Get all recurring and non recurring events from sharepoint calendar

May 20, 2015 at 1:05 PM
Edited May 20, 2015 at 1:10 PM
I am trying to get all calendar events (recurring and non-recurring) to populate "fullcalendar" but following snippet is not helping me out, not returning more past or most future events(I need all events). Immediate help would be appreciated.. I need all events from calendar including recurring.
In snippet, (+ = Plus(Operator))
           CAMLViewFields: "<ViewFields>" +
                            "<FieldRef Name='Title' />" +
                            "<FieldRef Name='EventDate' />" +
                            "<FieldRef Name='EndDate' />" +
                            "<FieldRef Name='Location' />" +
                            "<FieldRef Name='Description' />" +
                            "<FieldRef Name='fRecurrence' />" +
                            "<FieldRef Name='RecurrenceData' />" +
                            "<FieldRef Name='fAllDayEvent' />" +
                        "</ViewFields>",
       // CAMLQuery: strQuery,
        CAMLQuery:  "<Query><Where>"+
                    "<DateRangesOverlap>" +
                        "<FieldRef Name='EventDate' />" +
                        "<FieldRef Name='EndDate' />" +
                        "<FieldRef Name='RecurrenceID' />" +
                        "<Value Type='DateTime'>" +
                            "<Year />" +
                        "</Value>" +
                    "</DateRangesOverlap>" +
                    "</Where></Query>",
        CAMLQueryOptions: "<QueryOptions>" +
                            "<RecurrencePatternXMLVersion>v3</RecurrencePatternXMLVersion>" +
                            "<ExpandRecurrence>TRUE</ExpandRecurrence>" +
                        "</QueryOptions>",
Coordinator
Jun 19, 2015 at 7:06 PM
Check out this thread, which I think contains what you need:
https://spservices.codeplex.com/discussions/254560

M.