如何使用Office 365 API在Exchange Online中获取就地存档邮箱 [英] How to get In-Place archive mailbox in Exchange Online using Office 365 APIs

查看:205
本文介绍了如何使用Office 365 API在Exchange Online中获取就地存档邮箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取就地邮箱中的文件夹/电子邮件列表.但是邮箱列表和文件夹列表都不会返回就地邮箱.

I want to get list of folders/emails inside In-Place mailboxes. But both mailbox list and folder list doesn't returns In-Place mailboxes.

这是我到目前为止尝试过的:

This is what I have tried till now:

  1. 使用以下请求获取邮箱

请求:

https://outlook.office365.com/api/v1.0/users('someuser@somedomain.onmicrosoft.com')

响应:

{
    "@odata.context": "https://outlook.office365.com/api/v2.0/$metadata#Users/$entity",
    "@odata.id": "https://outlook.office365.com/api/v2.0/Users('12637010-f344-4827-9e3b-21218392985d@649b37da-e479-45dc-a099-fda797d7fcee')",
    "Id": "12637010-f344-4827-9e3b-21218392985d@649b37da-e479-45dc-a099-fda797d7fcee",
    "EmailAddress": "someuser@somedomain.onmicrosoft.com",
    "DisplayName": "User Name",
    "Alias": "user1",
    "MailboxGuid": "12312312-a498-46d1-93a8-870cd3faffec"
}

  1. 获取文件夹列表

请求:

https://outlook.office365.com/api/v1.0/users('someuser@somedomain.onmicrosoft.com')/folders?$top=100

响应:

{
    "@odata.context": "https://outlook.office365.com/api/v1.0/$metadata#Users('someuser%40somedomain.onmicrosoft.com')/Folders",
    "value": [{
        "@odata.id": "https://outlook.office365.com/api/v1.0/Users('someuser@somedomain.onmicrosoft.com')/Folders('ABCDA3AYxNjE2NjQyLWE0OTgtNDZkMy05M2E4LTg3MGNkM2ZhZmZlYwAuAAAAAACbFtMO1RLxQoChh4quwNSoAQChU257vJJfSLjbblRIqUFSAABgaA9RAAA=')",
        "Id": 'ABCDA3AYxNjE2NjQyLWE0OTgtNDZkMy05M2E4LTg3MGNkM2ZhZmZlYwAuAAAAAACbFtMO1RLxQoChh4quwNSoAQChU257vJJfSLjbblRIqUFSAABgaA9RAAA=',
        "DisplayName": "Clutter",
        "ParentFolderId": "ABCDAAVCNjE2NjQyLWE0OTgtNDZkMy05M2E4LTg3MGNkM2ZhZmZlYwAuAAAAAACbFtMO1RLxQoChh4quwNSoAQChU257vJJfSLjbblRIqUFSAAAAAAEIAAA=",
        "ChildFolderCount": 0,
        "UnreadItemCount": 0,
        "TotalItemCount": 1
    },
    {
.... other folders like Inbox, Conversations, Conversations history etc.
    }]
}

是否可以使用Office 365统一API?如果没有,还有其他选择吗?如果是,则Exchange在线如何处理就地邮箱;文件夹级别(看起来不像)还是用户级别的邮箱?

Is it possible to get it use Office 365 unified APIs? If not, is there any alternative? If yes, how does In-Place mailboxes are treated by Exchange online; folder-level(doesn't looks like) or at user level mailboxes?

注意:我已更改了请求和响应中的敏感信息

Note: I have changed sensitive information in requests and responses

推荐答案

是否可以使用Office 365统一API?如果没有,还有其他选择吗?

Is it possible to get it use Office 365 unified APIs? If not, is there any alternative?

存档邮箱(在Exchange Online中称为就地存档)是与用户关联的辅助邮箱. Office 365 API不支持访问存档邮箱.

Archive mailboxes (called an In-Place Archive in Exchange Online) are secondary mailboxes that are associated with a user. The Office 365 API does not support accessing to archive mailboxes.

顺便说一句,实现是Exchange的功能,EWS API支持归档项目,但它也不支持在实现邮箱中列出邮件(

BTW, achieving is a feature of Exchange, the EWS API supports archiving an item, but it does not support listing mails in achieve mailbox either (Archiving in EWS in Exchange).

对于Office 365 API的新功能请求,您可以考虑在 Office开发人员平台UserVoice 上提交.

For new feature request of Office 365 API, you can consider submitting it on Office Developer Platform UserVoice.

这篇关于如何使用Office 365 API在Exchange Online中获取就地存档邮箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆