p__b_o
p__b_o

Reputation: 71

Move or copy E-Mails from user mailbox to shared mailbox by API – Microsoft 365?

I need to copy or move Emails from a user mailbox to a shared mailbox. Per Graph API this case is not possible:

message: copy - Microsoft Graph beta | Microsoft Learn

message: move - Microsoft Graph beta | Microsoft Learn

How to handle this case? Are any other APIs for move / copy available? Maybe some Exchange Web Services (EWS) APIs that I don’t know? In OWA this feature is available…. Which API use OWA for this case?

OR

How to import an EML file (exporting E-Mail – possible by API) to a shared mailbox?

Upvotes: 3

Views: 1547

Answers (1)

Glen Scales
Glen Scales

Reputation: 22032

The EWS Move and Copy operations do support moving items between mailboxes https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-move-and-copy-email-messages-by-using-ews-in-exchange you can also do an import of MIME messages https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-import-items-by-using-ews-in-exchange or use ExportItem and UploadItem to do a full fidelity copy of a Message (useful if you where trying to copy between two different m365 tenants)

Upvotes: 4

Related Questions