Office 365 API EWS calendar not expanding recurring events

北战南征 提交于 2019-12-23 05:39:08

问题


I am using REST services with the new Office 365 API Preview.

The following request returns the "Non-recurring appointments and recurring master appointments", but all "single occurrences of recurring series" are missing:

https://outlook.office365.com/ews/odata/Me/Events?$top=30&$select=Subject,Start,End&$filter=End+ge+2014-12-01T01%3A00%3A00Z+and+Start+le+2015-02-01T01%3A00%3A00Z

The EWS Managed API has a method ExchangeService.FindAppointments that expands a series of recurring calendar items and returns "Non-recurring appointments, single occurrences of recurring series, and exceptions to recurring series". MSDN

What parameters do I need to use to also get the "single occurrences of recurring series, and exceptions to recurring series" using the Office 365 REST API?


回答1:


Thanks for your interest in Office 365 Calendar APIs! We are currently rolling out an API to expand a specific meeting series for a given timeframe, and an API to provide a calendar view i.e. list of all meetings (single instances, occurrences and exceptions of a meeting series) for a given timeframe. As soon as the deployment is complete, we will update our docs with details on the new APIs. I believe one of these APIs will meet your needs.

Can you please try the following URL? This new CalendarView API is almost fully deployed, but we are still updating documentation. In the meantime, please let me know if this request works for you.

https://outlook.office365.com/ews/odata/Me/CalendarView?$top=30&$select=Subject,Start,End&startDateTime=2014-12-01T01:00:00Z&endDateTime=2015-02-01T01:00:00Z

Let me know if you have any questions or need more info.

Thanks,

Venkat



来源:https://stackoverflow.com/questions/26429144/office-365-api-ews-calendar-not-expanding-recurring-events

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!