none
UploadItems with UpdateorCreate in EWS

    Question

  • Hi,

    I am using EWS function Uplloaditems to upload email items exported from Mailbox A to Mailbox B. The CreateAction property used in UploadItems is set to UploadorCreate. The item id and changekey in the call is set to original itemid and changekey. The parenfolderid parameter's id and changekey is set to that of the targetfolder in Mailbox B  This command fails with the error. "Access Denied Check Credentials".

    When i change the CreateAction property to CreateNew while keeping rest same it works.

    Also when I use CreateAction property as the UploadCreate to restore emails items exported from Mailbox A to itself while keeping rest same it succeeds.

    Summarizing, CreateAction = UploadorCreate works for restore mails exported from Mailbox A to Mailbox A but fails in case of restoring mails form Mailbox A to Mailbox B.

    Please someone suggest what is wrong.

    Thanks,


          

     


    Gagan

    Thursday, July 18, 2013 4:08 PM