I have a REST API that I will be accessing via JQuery in an Outlook AddIn for O365. This particular Rest query requires multipart/form-data as part of the request. In this case, I need this data to be the Outlook msg data and/or the email attachment. The API knows what do with the data once it has it. So the data has to be the .msg file and/or the email attachment which in this case could be PDF, TIFF, etc.
Is there an object in Outlook 365 that can be accessed (MSG and Attachment) to create a data object to pass to the rest call?