问题
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