Open barisbikmaz opened 3 weeks ago
Hi @barisbikmaz Can you tell us how you are attaching the file? If you are using an API please paste the API call here so that we can reproduce on our side.
@neprasad-microsoft Was on vacation, could therefore not reply.
I open Outlook Online and run following code to add an inline attachment:
Office.context.mailbox.item.addFileAttachmentFromBase64Async('some-base64-image','myimage.png',{ isInline: true })
To be sure that the image is attached, I insert a signature referencing this image.
Office.context.mailbox.item.body.setSignatureAsync('Greetings<br/><img src="cid:myimage.png" />', { coercionType: 'html' });
This works. But when I run
Office.context.mailbox.item.getAttachmentsAsync(console.log)
it does not return the inline attachment.
Thanks for reporting this issue. We have put this in our backlog but unfortunately we do not have any timelines to share at this point. Internal tracking id: 276714
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!
Provide required information needed to triage your issue
When using the method getAttachmentsAsync in Outlook Online, the list of the attached files are not listed. You always get an empty array. On Outlook for Windows the returned list is correct.
Your Environment
Expected behavior
Office.context.mailbox.item.getAttachmentsAsync should return the list of attached files, also the inline ones.
Current behavior
Outlook Online An empty array is returned.
Same call in Outlook for Windows
Steps to reproduce
Context
I am working on a signature app which uses inline images. When switching a signature, which has new images, I want to delete existing inline image attachments. But currently I can't see which attachments are attached to the mail.