如果我(my.user@example.com = 登录用户)尝试获取另一个用户(other.user@example.com)与我共享的邮件文件夹的增量...
https://graph.microsoft.com/v1.0/users/other.user@example.com/mailFolders/OtherUsersInboxFolderId==/messages/microsoft.graph.delta?$filter=ReceivedDateTime%20ge%202021-04-01T08:00:00.0000000Z
... 我收到一个 ErrorItemNotFound:
{
"error": {
"code": "ErrorItemNotFound",
"message": "The specified object was not found in the store.",
"innerError": {
"date": "2021-04-19T10:00:00",
"request-id": "<GUID>",
"client-request-id": "<GUID>"
}
}
}
如果我不请求增量而是仅请求该文件夹中的消息,则请求成功并返回预期的消息:
https://graph.microsoft.com/v1.0/users/other.user@example.com/mailFolders/OtherUsersInboxFolderId==/messages
如果我 (my.user@example.com) 尝试获取共享邮箱 (shared@example.com) 的收件箱文件夹的增量,则请求也会成功:
https://graph.microsoft.com/v1.0/users/shared@example.com/mailFolders/SharedUsersInboxFolderId==/messages
所以现在我的问题是: 为什么增量对其他用户与我共享的文件夹不起作用? 它只是没有在 Graph API 中实现还是我做错了什么?
答案 0 :(得分:0)
共享邮件文件夹不支持增量呼叫,这就是您收到 404 的原因。