Skip to content

Accatment name is getting incorrectly from the getAttachmentsAsync function. #6361

@ReddyBhargavi18

Description

@ReddyBhargavi18

Attachment name is getting incorrectly for the inline image when compared with the html content.

Your Environment

  • Platform: PC desktop, Mac, iOS, Office on the web
  • Host: outlook
  • Browser (if using Office on the web): Edge and chrome

Expected behavior

Need to get the same attachment name of an inline image with the name which is there in the html content

Current behavior

Attachment name is getting incorrectly for the inline image when compared with the html content.

Steps to reproduce

  1. New mail > Add an inline image in the compose window
  2. Get the attachment details using the getAttachmentsAsync function and get the html content when compared the attachment name with the content it is different
    Office.context.mailbox.item.getAttachmentsAsync({ asyncContext: { currentItem: Office.context.mailbox.item } }, async function(result){ }) function used to get the attachments
    Office.context.mailbox.item.body.getAsync(Office.CoercionType.Html, function(htmlResult){}) function to get the html content of the compose window

Useful logs

Image

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions