Office 365 API定期会议不总是返回 [英] Office 365 API recurring meetings not always returning

查看:83
本文介绍了Office 365 API定期会议不总是返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Office 365 REST API(

I'm trying to use the office 365 rest APIs (http://msdn.microsoft.com/en-us/library/office/dn792114(v=office.15).aspx#sectionSection3) to retrieve a users calendar events for a specific date. Currently I am running the query below:

https://outlook.office365.com/ews/odata/Me/Events ?$ select =开始,结束,全天,主题&$ filter =开始+ ge + 2014-09-10T05%3A00%3A00Z +和+开始+ le + 2014-09-11T04%3A59%3A59Z

https://outlook.office365.com/ews/odata/Me/Events?$select=Start,End,IsAllDay,Subject&$filter=Start+ge+2014-09-10T05%3A00%3A00Z+and+Start+le+2014-09-11T04%3A59%3A59Z

这非常适合"SingleInstance"和"SeriesMaster"类型的会议实例;但是,我发现定期会议有一些奇怪的行为.仅对于某些用户,API调用不会返回任何发生"类型的会议(重复发生的特定事件).即使会议显示在OWA门户的日历中.其他用户看到的定期会议和非定期会议.

This works perfectly for 'SingleInstance' and 'SeriesMaster' Type meeting instances; however, I am seeing some strange behavior with recurring meetings. For only some users any 'Occurrences' type meetings (a specific occurrence of a recurring meeting) are not returned from the API call; even if the meeting displays on their calendar in the OWA portal. Other users see recurring and non-recurring meetings as expected.

作为测试,我创建了一个定期会议,并邀请了报告问题的用户和获得预期响应的用户,然后为所有用户再次运行查询.该会议遵循上述模式,用户看到了所有预期的事件,或者没有看到重复发生的事件.

As a test I created a recurring meeting and invited users who were reporting the issue and users who were getting the expected response and then ran the query again for all users. That meeting followed the pattern described above with users either seeing all of the expected occurrences or no recurring meeting occurrences.

还有其他人遇到吗?有没有更好的方法来获取特定日期范围内的所有会议活动?

Has anyone else come across this? Is there a better way to get all meeting events for a specific date range?

推荐答案

将第一个参数的名称更改为"End",即:

Change the name of the first parameter to "End", i.e.:

https://outlook.office365.com/ews/odata/Me/Events ?$ select =开始,结束,全天,主题& $ filter =结束+ ge + 2014-09-10T05%3A00%3A00Z +和+开始+ le + 2014-09-11T04%3A59%3A59Z

https://outlook.office365.com/ews/odata/Me/Events?$select=Start,End,IsAllDay,Subject&$filter=End+ge+2014-09-10T05%3A00%3A00Z+and+Start+le+2014-09-11T04%3A59%3A59Z

我知道,这很奇怪,但是要检索日期范围内事件的完整列表的唯一方法是先使用结束"参数,然后再使用开始".

I know, it is bizarre but the only way to retrieve a complete list of events within a date range is to have the "End" argument first followed by the "Start".

$ filter =结束ge {0}并开始文件{1}

$filter=End ge {0} and Start le {1}

请注意:API可能会在不久的将来发生变化,所有这些都将不再适用.

Note: the API could change in the near future and none of this will longer apply.

这篇关于Office 365 API定期会议不总是返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆