Forum Discussion
nigelgomm
Apr 02, 2020Copper Contributor
REST API question : downloading attachments
If I drag and drop an email attachment from a web outlook (that is from https://outlook.office.com/mail/inbox open in a browser) to my desktop application I see the following JSON string in the drop...
nigelgomm
Apr 04, 2020Copper Contributor
best i could find so far is to search messages for the file name
.../messages/?$search="attachment:{Name}"&$expand=Attachments
and then loop through the returned messages and their attachments looking for the specific id.
not ideal... but it's working.
n.b. you have to replace any "/" characters with "-" and any "+" with "_" in the attachmentid when comparing with the id returned in the search.