问题描述
自从我开始使用MSGraph提取所有会议历史记录数据以来。我问了what's the best way。现在我知道了:
-
列表事件不支持日期范围的参数,因此我无法使用 它。
-
getSchedule具有bug of odata.nextLink,我已经提交了 票。
-
现在,我想尝试calendarView。 calendarView仅与登录帐户相关,例如一世 如果会议室帐户B拥有与之无关的会议,则以A身份登录 A,然后calendarView将无法获取它。所以我在想,如果我分享B 到A,那么我可以使用
https://graph.microsoft.com/v1.0/users/{accountB}/calendarView?startDateTime=..。
获取数据。
我对其进行了测试,但收到错误消息:
{"code":"ErrorItemNotFound","message":"The specified object was not found in the store."}
怎么了?
解决方法
如果我想使用Microsoft图形访问共享邮箱,请尝试以下操作:
GET graph.microsoft.com/v1.0/users{Alex-userId | Alex-userPrincipalName}/calendar/events
请注意,共享权限(Calendars.Read.Shared或Calendars.ReadWrite.Shared)允许您在共享或委派日历中读取或写入事件。在此之前,我将确保我具有足够的权限并遵循documentation。