使用图形api读取可恢复的项目隐藏文件夹

时间:2018-04-05 10:09:48

标签: office365 microsoft-graph outlook-restapi

当我使用https://graph.microsoft.com/v1.0/users/{id}/mailFolders图形API时,它只列出公共文件夹。有没有办法在EWS中的邮箱中获取所有隐藏文件夹(可恢复的项目)?

1 个答案:

答案 0 :(得分:2)

WellKnownFolderName枚举应该可以正常工作,例如

https://graph.microsoft.com/v1.0/users('user@d.com')/MailFolders/RecoverableItemsRoot
https://graph.microsoft.com/v1.0/users('user@d.com')/MailFolders/RecoverableItemsDeletion
https://graph.microsoft.com/v1.0/users('user@d.com')/MailFolders/RecoverableItemsPurges
https://graph.microsoft.com/v1.0/users('user@d.com')/MailFolders/RecoverableItemsVersions

否则查看Root的子文件夹,例如

https://graph.microsoft.com/v1.0/me/MailFolders/Root/childfolders/?$Top=1000