Coder Social home page Coder Social logo

Outlook on the web has different values for attachments that can be retrieved with getAttachmentsAsync in certain situations. about office-js HOT 9 CLOSED

mailchecktool-admin avatar mailchecktool-admin commented on August 10, 2024
Outlook on the web has different values for attachments that can be retrieved with getAttachmentsAsync in certain situations.

from office-js.

Comments (9)

mailchecktool-admin avatar mailchecktool-admin commented on August 10, 2024

I checked the value obtained by getAttachmentsAsync in the console, and it shows that the value is not included if it was sent from a draft.

【When first composing an email】
スクリーンショット 2024-07-04 134443

【After performing the above operation】
スクリーンショット 2024-07-04 134356

from office-js.

Swathy-Mothilal avatar Swathy-Mothilal commented on August 10, 2024

@mailchecktool-admin could you please share a repro video and the manifest where you are encountering the issue?
Additionally, just to clarify, are you using getAttachmentAsync only in the MessageCompose context as specified in the documentation at https://learn.microsoft.com/en-us/javascript/api/outlook/office.messagecompose?view=outlook-js-preview&preserve-view=true#outlook-office-messagecompose-getattachmentsasync-member(1)

from office-js.

Swathy-Mothilal avatar Swathy-Mothilal commented on August 10, 2024

@mailchecktool-admin We noticed another GitHub post created at #4643 regarding the same issue on a different platform by you. Could you please summarize on which platforms are experiencing this issue?

from office-js.

mailchecktool-admin avatar mailchecktool-admin commented on August 10, 2024

@Swathy-Mothilal
This event is reproduced in Outlook on the web(chrome).
Although #4643 refers to the event in the Outlook client, the question is the same.

The question is : does the size, name, and retrieved value of an image inserted in the body of an email change when the drafts folder is moved or reloaded?
I have taken a screen recording of the event and am attaching it herewith.
The add-in I am developing starts when the mail is sent,
It is retrieved by getAttachmentsAsync from the contents of Office.context.mailbox.item.
The image that is checked in console.log is the image inserted in the body of the email.
When sending after reloading, the attachment file obtained by getAttachmentsAsync is empty even if the add-in is started.

Has a similar problem been reported elsewhere?

ビデオ 7-04 18.15.zip

from office-js.

Swathy-Mothilal avatar Swathy-Mothilal commented on August 10, 2024

@mailchecktool-admin In Outlook on the web the attachment identifier is valid only within the same session. A session is over when the user closes the app. For more info, please refer to https://learn.microsoft.com/en-us/javascript/api/outlook/office.messagecompose?view=outlook-js-preview#outlook-office-messagecompose-getattachmentcontentasync-member(1).

from office-js.

mailchecktool-admin avatar mailchecktool-admin commented on August 10, 2024

@Swathy-Mothilal
Sorry for the late reply.
I have read the documentation and understand the getAttachmentAsync specification.
However, I believe that users often close or pop out of the application, so if possible, I would like you to revise the specification so that getAttachmentAsync is enabled even outside of the same session.
Thank you in advance.

from office-js.

rkpathak avatar rkpathak commented on August 10, 2024

Currently we dont support this. We track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process.

Github Label: “Type: product feature request”
https://aka.ms/M365dev-suggestions

from office-js.

microsoft-github-policy-service avatar microsoft-github-policy-service commented on August 10, 2024

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!

from office-js.

microsoft-github-policy-service avatar microsoft-github-policy-service commented on August 10, 2024

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.

from office-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.