Is it possible to retrieve an attachment using an EWS call, etc. from an outlook mail app? RRS feed

  • General discussion

  • Is it at all possible to retrieve an attachment from an outlook mail app, using an EWS call - or anything else?

    I see that EWS can help with retrieving the full body of the message, which is otherwise not possible with the office JS API:

    To do that, an EWS call (makeEwsRequestAsync - is necessary to retrieve the full body of the message.  

    I am interested in retrieving attachments - is it possible do this in JS, perhaps using EWS, the makeEwsRequestAsync call?  If not, are there any alternatives?


    Saturday, November 17, 2012 10:33 PM

All replies

  • Hi avioing,

    Thanks for posting in the MSDN Forum.

    I think I don't understand the mean of retrieve complete. Do you only what to know how many attachments a specific item have or attachments' name of it? Or you have further goal?

    Have a good day,


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, November 20, 2012 7:41 AM
  • Retrieve - as in "get", "download", "fetch".  Yes, I want to know the number and the names of attachments, but more importantly, I want to be able to download the attachment programmatically and save it elsewhere.

    In other words, I need access to the attachment(s) - is there any way to do this from within the outlook web app?

    Tuesday, November 20, 2012 5:14 PM
  • This is currently only possible by using an EWS command to forward the mail with attachments to another smtp endpoint.

    There is an EWS call to fetch/download/get attachments but it is currently not allowed via a mail app.

    Monday, November 26, 2012 7:34 PM
  • i found this article that describes how to get an attachment using EWS:

    However does this mean that the only way to get the attachment is to get the actual binary contents of the file? You mention in your reply there is an EWS call to fetch/download/get attachments, which suggest I may be able to get some kind of unique URL to download the item, is that possible?

    Or is it required that I download the attachment only as a binary file to the server?

    Tuesday, May 5, 2015 10:54 PM
  • I don't believe that at the moment it's possible to get a URL that would "reference" the attachment and that would be accessible using the callback token. In future there may be such capability though.
    Monday, May 11, 2015 4:56 AM
  • thanks for at least confirming, for anyone else looking for this feature here's a related uservoice entry that you can upvote:
    Tuesday, May 12, 2015 12:35 AM