Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
How to retrieve attachment-id when adding an image attachement
Alexander Timmermans
11
Reputation points
Referring to the following stackoverflow answer: https://stackoverflow.com/a/62184870/3737186
When adding an attachment as described here: https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/add-and-remove-attachments-to-an-item-in-a-compose-form
Is it in the meanwhile possible to retrieve the attachement-id of the attachement through office-js? I mean the GUID of the attachment inside the email and not the id on the graphAPI.
Because often examples refer the images through the image name, but I would like to not do something like
<img src="cid=myImage.png"/>
But rather I want to do this
<img src="cid=203c5bf3-4bda-45b2-8df2-f0db339d94b8"/>
Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Development | Other
Sign in to answer