Exchange Web Services SyncFolderItems 重复项目在实际重复时将 IsRecurring 设置为 false
我正在编写一个应用程序,将用户的日历同步到本地商店。我正在使用 Exchange Web Services (EWS) 和 SyncFolderItems 方法来提取更改。这一切都很完美,直到我发现同步项目不包括“定期”约会。
另一篇 stackoverflow 文章指出,这是因为它们是“虚拟的”。但它确实包括“主人”的任命。问题是,那很好。我正在支持重复的第三方日历上呈现约会,因此我只需要存储约会中的重复信息,然后我可以将其翻译到我的日历上,这样它将显示正确的信息。
然而,当我检查“IsRecurring”字段时,它说它是错误的,因为它显然是一个定期约会。有人遇到过这个吗?
I am writing an application which synchronises users' calendars into a local store. I am using Exchange Web Services (EWS) and the SyncFolderItems method to pull down the changes. This all worked perfectly until I discovered the synchronised items don't include "Recurring" appointments.
Another stackoverflow article suggested that this is because they are "virtual". It does include the "master" appointment though. The thing is, that's fine. I am rendering the appointments on a third party calendar that supports recurrance, so I just need to store the recurrance info from the appointment and I can translate that onto my calendar, so it will show the correct information.
However, when I check the "IsRecurring" field, it says it's false when it is clearly a recurring appointment. Anybody come across this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
自从我试图过滤掉重复出现的项目以来,我注意到了同样的事情。我最终查询并检查了 CalendarItemType(http://msdn.microsoft.com/en-us/library/exchange/aa494158(v=exchg.140).aspx) 来确定该项目是否是重复的一部分无论是否,此属性都可以在 SyncFolderItems 形状中查询。
I have noticed the same thing since I was trying to filter out recurring items. I ended up querying for and checking the CalendarItemType(http://msdn.microsoft.com/en-us/library/exchange/aa494158(v=exchg.140).aspx) instead to determine if the item was part of a recurrence or not, this property is queryable in the SyncFolderItems shape.
似乎 IsRecurring 并不总是设置正确(grr...)。解决方案是检查 CalendarItemType 字段(如上所述),如果它等于
RecurringMaster
- 那么 IsRecurring 应该为 true。 其他可能的值包括:Occurrence
Exception
尽管在 SyncFolderItems 的情况下,它将是
RecurringMaster
或单身
我相信。Seems that IsRecurring doesn't always get set right (grr...). Solution is to check the CalendarItemType field (mentioned above) and if it's equal to
RecurringMaster
-- Then IsRecurring should be true. Other possible values include:Single
Occurrence
Exception
Though in the case of SyncFolderItems it will either be
RecurringMaster
orSingle
I believe.