简体   繁体   中英

Issue with Microsoft Graph Api filter

I am trying to use filter operator to find the events between specific date and time. Now, it only searches single events, any occurrence of recurring events are being excluded.

Following i tried in Graph explorer

https://graph.microsoft.com/v1.0/me/calendar/events?$filter=start/dateTime ge '2022-09-20T00:00:00Z' and end/dateTime le '2022-09-20T23:59:00Z'

it was working all ok few months back and was returning single occurrences of recurring events as well, but now its behaving differently. Can anyone suggest if i am doing something wrong or something changed.

Thanks Nitin

You need to be using a CalendarView to expand recurring appointments https://docs.microsoft.com/en-us/graph/api/user-list-calendarview?view=graph-rest-1.0&tabs=http . The API shouldn't expand recurring appointment if you make a normal query like your example. This is important if you have any application that is syncing the real exchange store items vs the expanded virtual ones. If it was previously doing that then it was most likely a bug that was fixed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM