简体   繁体   English

Microsoft Graph Api 筛选器出现问题

[英]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 .您需要使用 CalendarView 来扩展定期约会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.如果您像示例一样进行正常查询,则 API 不应扩展定期约会。 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.如果它以前这样做,那么它很可能是一个已修复的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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