user124114
user124114

Reputation: 8711

Graph API fails for Archive mailboxes

I've been using the Microsoft Graph API to access Exchange Online (Office365) In-Place Archives.

It's basically an authenticated GET HTTPS request against https://graph.microsoft.com/v1.0/users/[email protected]/mailFolders/ArchiveMsgFolderRoot and it used to work fine.

Starting this week (end of April 2020), the same request against the same resource (no change) started failing with:

404 Response: {'error': {'code': 'ErrorInvalidMailboxItemId', 'message': "Item Id doesn't belong to the current mailbox.", 'innerError': {'request-id': '4a339242-9821-42a9-9622-4b1f7cd2c162', 'date': '2020-04-24T10:01:35'}}}

Other mailboxes (not ArchiveMsgFolderRoot) continue to work fine, no problem there. Only In-Place archives are affected.

How do you access In-places Archives from the Graph API now? Can you share an example?

Upvotes: 10

Views: 1149

Answers (2)

phpnederland.nl
phpnederland.nl

Reputation: 126

Support of ArchiveMsgFolderRoot was never an official feature. There was an announcement that archiving is going be changing coming time.

Upvotes: 2

Max Kaps 4bis.nl
Max Kaps 4bis.nl

Reputation: 1401

Same here. We are trying to figure out what exactly changed on MS side. MS removed support for In-Place Archives in API. All options on the internet are not working anymore. We are implementing a workaround.

Upvotes: 3

Related Questions