question

KristofLievens-5702 avatar image
0 Votes"
KristofLievens-5702 asked ·

Microsoft graph ErrorMultipleMailboxesNotSupportedForRest error

Hi, I'm trying to copy a mail using the Microsoft Graph API and Postman. I'm copying a mail from my personal work mailbox to a shared mailbox folder using this POST URL: https://graph.microsoft.com/v1.0/Users/xxx-my-id-xxx/messages/xxx-a-message-id/copy, the body of the request = { "destinationId": "xxx-id-of-target-folder-in-shared-maibox-xxxx" } This has worked for years using the deprecated outlook v2.0 API, but until recent, I get this error. I tried switching to the graph API but keep getting this error: "error": { "code": "ErrorMultipleMailboxesNotSupportedForRest", "message": "Rest does not support copying items between multiple mailboxes, only single mailbox copy operations are supported." } What am I doing wrong? Upon authentication, I use the following OAuth2 scopes: openid Mail.ReadWrite.Shared offline_access profile email

microsoft-graph-mail
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Danstan avatar image
0 Votes"
Danstan answered ·

Graph does not currently support copying messages between two mailboxes. As the error says, only copy between folders within a single mailbox is supported.
I suggest you create a feature request in the Graph UserVoice so that it can be implemented in future.

You could also try to instead create the message as a draft in the new mailbox but it will exist as a draft. This may or may not work for you.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KristofLievens-5702 avatar image
0 Votes"
KristofLievens-5702 answered ·

Hi Danstan, this has worked in the past when using the outlook v2.0 REST API, but also when using that (deprecated) API, I get the same error. Any idea why?

· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I am not sure on outlook v2.0 REST API. I suggest you open new question to get help outlook v2.0 REST API issue. I can only answer the graph bit of it. If the answer was helpful consider accepting.

0 Votes 0 ·

OK, thx for your help @Danstan !

1 Vote 1 ·