Can't get 'Inbox' folder via Microsoft Graph api

南楼画角 提交于 2021-02-11 13:47:57

问题


I can't get 'Inbox' mailFolder resource via Microsoft Graph api.

I tried to use /me/mailFolders to get all of mailFolders under the root folder, but the 'Inbox' didn't show in api response.

Besides, I also tried to send api with the well-known folder names, but the server responded ErrorItemNotFound.

However, there are many sub-folders under my 'Inbox' mail folder, and I can see them via Office365 website.

Here are the detail request and response.

Request:

GET /users/5df7dac4-5c93-4bb6-8dc9-7bdf586c3e97/mailFolders/inbox

Response:

{
  "error": {
    "code": "ErrorItemNotFound",
    "message": "The specified object was not found in the store.",
    "innerError": {
      "request-id": "7a5904ba-cf58-4278-aab4-937176ef2a45",
      "date": "2019-01-21T08:23:22"
    }
  }
}

来源:https://stackoverflow.com/questions/54288794/cant-get-inbox-folder-via-microsoft-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!