none
[EWS] Create an ItemAttachment of an Item that has attachments itself RRS feed

  • Question

  • I have a message A with some attachments.

    Now i create message B and want to attach A as an ItemAttachment. To do that i call CreateAttachment with a MessageType object that represents A. But how do i reference the attachments of message A?

    I tried editing my CreateAttachment request and adding an Attachments block into the Message, but receive an ErrorMissingItemForCreateItemAttachment.

    Tuesday, October 30, 2018 9:46 AM

Answers

  • You should be able to do that using the MIME content from Message A as the mime content should contain the attachment (MIME encoded).

    Cheers
    Glen

    • Marked as answer by Simon Hain Thursday, November 1, 2018 8:43 AM
    Tuesday, October 30, 2018 8:59 PM

All replies

  • You should be able to do that using the MIME content from Message A as the mime content should contain the attachment (MIME encoded).

    Cheers
    Glen

    • Marked as answer by Simon Hain Thursday, November 1, 2018 8:43 AM
    Tuesday, October 30, 2018 8:59 PM
  • Thanks Glen, that also caught my eye while testing, it works like that.
    Thursday, November 1, 2018 8:44 AM