我对此API提出了请求,并获得了msgfolderroot
ID:
https://graph.microsoft.com/beta/me/mailFolders/msgfolderroot
之后,我打电话给我,并得到了一个文件夹列表:
https://graph.microsoft.com/beta/me/mailFolders/root/childFolders
我需要在根目录中找到一个msgfolderroot
,所以我从第一个查询中复制了所需文件夹的ID,并在第二个请求的响应中进行了搜索,结果发现两个文件夹可以有一个ID。
请告诉我,这怎么可能?并且,请说明为什么这两个文件夹的childFolderCount
和totalItemCount
不同?
示例
对第一个请求的响应:
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#users('9ee07cfe-3e76-4005-bd2b-258f31aaea72')/mailFolders/$entity",
"id": "AAMkAGNjZjYwNmU4LTJjYWUtNDJiNC1hNWNhLWMwNzllZWZkMjM0NAAuAAAAAAAJFA5toPC1R7wN_YNAZc4HAQAYGWCmW3joQLGNsVuMcOgpAAAAAAEIAAA=",
"displayName": "Корневой уровень хранилища",
"parentFolderId": "AAMkAGNjZjYwNmU4LTJjYWUtNDJiNC1hNWNhLWMwNzllZWZkMjM0NAAuAAAAAAAJFA5toPC1R7wN_YNAZc4HAQAYGWCmW3joQLGNsVuMcOgpAAAAAAEBAAA=",
"childFolderCount": 20,
"unreadItemCount": 0,
"totalItemCount": 0,
"wellKnownName": "msgfolderroot"
}
具有相同ID的文件夹可响应第二个请求:
{
"id": "AAMkAGNjZjYwNmU4LTJjYWUtNDJiNC1hNWNhLWMwNzllZWZkMjM0NAAuAAAAAAAJFA5toPC1R7wN_YNAZc4HAQAYGWCmW3joQLGNsVuMcOgpAAAAAAEiAAA=",
"displayName": "XrmActivityStream",
"parentFolderId": "AAMkAGNjZjYwNmU4LTJjYWUtNDJiNC1hNWNhLWMwNzllZWZkMjM0NAAuAAAAAAAJFA5toPC1R7wN_YNAZc4HAQAYGWCmW3joQLGNsVuMcOgpAAAAAAEBAAA=",
"childFolderCount": 0,
"unreadItemCount": 0,
"totalItemCount": 25,
"wellKnownName": null
},
...
{
"id": "AAMkAGNjZjYwNmU4LTJjYWUtNDJiNC1hNWNhLWMwNzllZWZkMjM0NAAuAAAAAAAJFA5toPC1R7wN_YNAZc4HAQAYGWCmW3joQLGNsVuMcOgpAAAAAAEIAAA=",
"displayName": "Корневой уровень хранилища",
"parentFolderId": "AAMkAGNjZjYwNmU4LTJjYWUtNDJiNC1hNWNhLWMwNzllZWZkMjM0NAAuAAAAAAAJFA5toPC1R7wN_YNAZc4HAQAYGWCmW3joQLGNsVuMcOgpAAAAAAEBAAA=",
"childFolderCount": 20,
"unreadItemCount": 0,
"totalItemCount": 0,
"wellKnownName": "msgfolderroot"
}