Graph api Calendar Events - Recurring Events - Only first instance of series is returned in response

%3CLINGO-SUB%20id%3D%22lingo-sub-2391892%22%20slang%3D%22en-US%22%3EGraph%20api%20Calendar%20Events%20-%20Recurring%20Events%20-%20Only%20first%20instance%20of%20series%20is%20returned%20in%20response%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2391892%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20trying%20to%20retrieve%20calendar%20events%20using%20the%20below%20API%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fme%2FCalendar%2Fevents%3F%24filter%3Dstart%2FdateTime%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fme%2FCalendar%2Fevents%3F%24filter%3Dstart%2FdateTime%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ege%20%222021%2F05%2F26T00%3A00%3A00%22%3C%2FP%3E%3CP%3EBelow%20are%20the%20limitations%20we%20are%20seeing%20in%20the%20API%20response%20in%20respect%20with%20recurring%20events%3A%3C%2FP%3E%3CP%3E1)%20The%20%22Start%22%20and%20%22End%22%20properties%20of%20the%20recurring%20event%20are%20the%20start%20and%20end%20date%20of%20the%20first%20occurrence%20of%20the%20series.%20Due%20to%20this%20we%20are%20unable%20to%20query%20future%20occurrences%20of%20recurring%20events.%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image1.png%22%20style%3D%22width%3A%20403px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F284325iB751CCF4FCA6B81C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image1.png%22%20alt%3D%22image1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20we%20have%20set%20a%20recurring%20event%20that%20repeats%20everyday%20starting%20from%202021%2F05%2F25%20for%20a%20year.%20If%20we%20try%20to%20query%20the%20API%20to%20retrieve%20future%20events%20(considering%20today%2C%202021%2F05%2F26)%20%2C%20then%20though%20recurring%20event%20is%20expected%20to%20be%20shown%20in%20the%20response%2C%20it%20is%20not%20found.%3C%2FP%3E%3CP%3E2)%20The%20recurrence%20pattern%20has%20info%20regarding%20the%20start%20and%20end%20date%20of%20the%20series.%20However%2C%20if%20we%20try%20to%20filter%20the%20recurrence%20property(we%20want%20to%20filter%20the%20recurrence%20range)%2C%20we%20are%20getting%20an%20error%20saying%20%22Recurrence%20property%20is%20not%20supported%20for%20filtering%22%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image2.png%22%20style%3D%22width%3A%20421px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F284327iC8CB1B6AB8A40942%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image2.png%22%20alt%3D%22image2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CEM%3ECan%20you%20please%20let%20us%20know%20an%20ideal%20solution%20to%20be%20able%20to%20retrieve%20the%20recurrent%20event%20instance%2Fseries%20information%20using%20start%20and%20end%20date%20filter%20with%20the%20calendar%20events%20API.%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CEM%3EThe%20event%20is%20returned%20only%20by%20matching%20with%20the%20properties%20of%20the%20first%20occurrence%20of%20the%20event.%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CEM%3EWe%20are%20looking%20for%20the%20event%20to%20be%20retrieved%20until%20the%20end%20of%20the%20recurring%20series%20is%20%26gt%3B%20current%20date.%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20%26amp%3B%20Regards%2C%3C%2FP%3E%3CP%3EBhanu%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2567946%22%20slang%3D%22en-US%22%3ERe%3A%20Graph%20api%20Calendar%20Events%20-%20Recurring%20Events%20-%20Only%20first%20instance%20of%20series%20is%20returned%20in%20resp%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2567946%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20case%20you're%20still%20looking%20for%20a%20solution%2C%20I%20think%20the%20calendarView%20endpoint%20could%20be%20a%20solution.%20You%20have%20to%20filter%20the%20events%20by%20start%20and%20end%20dates%2C%20and%20it%20returns%20all%20of%20the%20recurrences%20in%20that%20time%20span.%3CBR%20%2F%3E%3CBR%20%2F%3EEx%3A%20%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fme%2Fcalendar%2FcalendarView%3FendDateTime%3D2022-12-28T22%3A23%3A00Z%26amp%3BstartDateTime%3D2020-12-28T00%3A00%3A00Z%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fme%2Fcalendar%2FcalendarView%3FendDateTime%3D2022-12-28T22%3A23%3A00Z%26amp%3BstartDateTime%3D2020-12-28T00%3A00%3A00Z%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EGood%20luck!%3C%2FLINGO-BODY%3E
Regular Contributor

Hi Everyone,

 

We are trying to retrieve calendar events using the below API:
https://graph.microsoft.com/v1.0/me/Calendar/events?$filter=start/dateTime ge "2021/05/26T00:00:00"

Below are the limitations we are seeing in the API response in respect with recurring events:

1) The "Start" and "End" properties of the recurring event are the start and end date of the first occurrence of the series. Due to this we are unable to query future occurrences of recurring events.

 
 

image1.png

 

For example, we have set a recurring event that repeats everyday starting from 2021/05/25 for a year. If we try to query the API to retrieve future events (considering today, 2021/05/26) , then though recurring event is expected to be shown in the response, it is not found.

2) The recurrence pattern has info regarding the start and end date of the series. However, if we try to filter the recurrence property(we want to filter the recurrence range), we are getting an error saying "Recurrence property is not supported for filtering"

 

image2.png

Can you please let us know an ideal solution to be able to retrieve the recurrent event instance/series information using start and end date filter with the calendar events API.

 

The event is returned only by matching with the properties of the first occurrence of the event.

 

We are looking for the event to be retrieved until the end of the recurring series is > current date.

 

 

Thanks & Regards,

Bhanu

1 Reply
Hi,

In case you're still looking for a solution, I think the calendarView endpoint could be a solution. You have to filter the events by start and end dates, and it returns all of the recurrences in that time span.

Ex: https://graph.microsoft.com/v1.0/me/calendar/calendarView?endDateTime=2022-12-28T22:23:00Z&startDate...

Good luck!