How can I move an email from a users main mailbox to a shared mailbox using apps for office. I know I can do this manually but i am creating an for owa/outlook that would be a button to move the item. I have tried using ews but can only find the commands to move emails inside the users mailbox
for example :
'<?xml version="1.0" encoding="utf-8"?>' +'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' +
' xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"' +
' xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"' +
' xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' +
' <soap:Header>' +
' <t:RequestServerVersion Version="Exchange2013" />' +
' </soap:Header>' +
' <soap:Body>' +
' <m:MoveItem>' +
' <m:ToFolderId>' +
' <t:DistinguishedFolderId Id="junkemail" />' +
' </m:ToFolderId>' +
' <m:ItemIds>' +
' <t:ItemId Id="' + id + '" ' +
' ChangeKey="' + changeKey + '" />' +
' </m:ItemIds>' +
' </m:MoveItem>' +
' </soap:Body>' +
'</soap:Envelope>';
Can I create a xml that would would do this? Is there a way to do it using the EWS service reference. I do not want to use import/export to do this.
- Moved by Fei XueMicrosoft contingent staff Thursday, March 12, 2015 9:23 AM