Comments (9)
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】
↓
【After performing the above operation】
from office-js.
@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.
@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.
@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?
from office-js.
@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.
@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.
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.
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.
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)
- body.clear() not working for content controls HOT 3
- How to make slide active Or How to insert image using index HOT 4
- Addin sample not showing in new look outlook and browsers. HOT 5
- Identifying Usage of New Outlook in Office-js Add-ins HOT 1
- Not able to sideload outlook addin. in macbook there is no option to add the manifest file HOT 5
- Inserting Signature with the OnMessageSend event duplicates the signature
- The identity API is not supported for this add-in in online Word HOT 2
- Excel Online: calculation state can get stuck in Pending state when workbook contains charts HOT 3
- IP Address Range Needed for Microsoft Office Add-in Validation Process
- Office API messageParent Outlook on android doesn't work
- NAA: Unable to acquire access token for event-based activation (onMessageSend) HOT 2
- Outlook addin using Bootstrap modal or offcanvas bleeds through on Mac version of Outlook. Classic and New Outlook for Mac. HOT 2
- [Word API] Document.compare: ability to specify Original and Revised document?
- Outlook NAA issue: "Something went wrong. [7q6cl]" Error HOT 5
- Web Outlook provides improper attachment data if attachment is still uploading to the email HOT 2
- [Question] Is it safe to use `CustomFunctions.delayinitialization()`
- New Outlook - emails stuck in outlook at queued or draft status HOT 3
- context.application.createDocument works only first time HOT 1
- WorkBook level Define name is getting corrupted while reopening excel using base64
- In Outlook, getAllInternetHeadersAsync works on an item in the Inbox, but not the sent folder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-js.