So erhalten Sie ein direktes Archivpostfach in Exchange Online mithilfe von Office 365-APIs
Ich möchte eine Liste der Ordner / E-Mails in In-Place-Postfächern erhalten. Sowohl die Postfachliste als auch die Ordnerliste geben jedoch keine direkten Postfächer zurück.
Das ist, was ich bis jetzt versucht habe:
Erhalte Postfächer mit folgender AnfrageAnfrage
https://outlook.office365.com/api/v1.0/users('[email protected]')
Antwort
{
"@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": "[email protected]",
"DisplayName": "User Name",
"Alias": "user1",
"MailboxGuid": "12312312-a498-46d1-93a8-870cd3faffec"
}
Hol Ordner auflistenAnfrage
https://outlook.office365.com/api/v1.0/users('[email protected]')/folders?$top=100
Antwort
{
"@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('[email protected]')/Folders('ABCDA3AYxNjE2NjQyLWE0OTgtNDZkMy05M2E4LTg3MGNkM2ZhZmZlYwAuAAAAAACbFtMO1RLxQoChh4quwNSoAQChU257vJJfSLjbblRIqUFSAABgaA9RAAA=')",
"Id": 'ABCDA3AYxNjE2NjQyLWE0OTgtNDZkMy05M2E4LTg3MGNkM2ZhZmZlYwAuAAAAAACbFtMO1RLxQoChh4quwNSoAQChU257vJJfSLjbblRIqUFSAABgaA9RAAA=',
"DisplayName": "Clutter",
"ParentFolderId": "ABCDAAVCNjE2NjQyLWE0OTgtNDZkMy05M2E4LTg3MGNkM2ZhZmZlYwAuAAAAAACbFtMO1RLxQoChh4quwNSoAQChU257vJJfSLjbblRIqUFSAAAAAAEIAAA=",
"ChildFolderCount": 0,
"UnreadItemCount": 0,
"TotalItemCount": 1
},
{
.... other folders like Inbox, Conversations, Conversations history etc.
}]
}
Ist es möglich, Office 365 Unified APIs zu verwenden? Wenn nicht, gibt es eine Alternative? Wenn ja, wie werden In-Place-Postfächer von Exchange Online behandelt? Ordner-Ebene (sieht nicht so aus) oder auf Benutzerebene Postfächer?
Hinweis Ich habe vertrauliche Informationen in Anfragen und Antworten geändert