Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 348
user124114 Avatar asked Apr 24 '20 14:04

user124114


2 Answers

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

like image 28
phpnederland.nl Avatar answered Sep 18 '22 03:09

phpnederland.nl


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.

like image 143
Max Kaps 4bis.nl Avatar answered Sep 22 '22 03:09

Max Kaps 4bis.nl