Allow Graph API access to Archive Mailbox (aka In-place Archive)
Microsoft's official documentation for Graph API access to Archive mailboxes is non-existent, and what people cobble together on public sites like StackOverflow is highly contradictory:
(some say it's impossible, some possible, but suggested solutions don't actually work).
- If it's possible to access Archive mailboxes (not just the regular archive folder in the normal mailbox!) via Graph API, document it properly.
- If it's not possible, make it possible.
Paul Park commented
It used to work and I have lots of solutions based on it but now it doesn't really need some way to get ot the archive.
Chris Park commented
Please add support for this!
As of 12/18/2020, I've verified that this does not work any longer (specifically, the information in this blog post is out of date: https://ivanderevianko.com/2020/02/get-messages-from-archived-mailbox-aka-in-place-archive-using-graph-api)
"message": "Item 'ArchiveMsgFolderRoot' doesn't belong to the targeted mailbox '...'. The item exists in an archive mailbox.",
(but messages are from the actual /Inbox instead of the one in the in-place archive, and same for /Archive)
How is this not supported already?
That's doesn't work for the online archive
This feature already exists, you can access the archived mailbox by using well-known folder name:
For example, to get messages from the Inbox folder in the Archive Mailbox (aka In-Place Mailbox) you should execute the following query:
More details available here: https://ivanderevianko.com/2020/02/get-messages-from-archived-mailbox-aka-in-place-archive-using-graph-api