-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Office.context.mailbox.item.inReplyTo is not available on item being composed in Outlook #5239
Comments
Here are some similar issues that might help you. Please check if they can solve your problem.
Possible solution (Extracted from existing issue, might be incorrect; please verify carefully) Solution 1:Thanks for linking the docs, as suggested, we now check for the presence of Item in the change handler. Reference: Solution 2:I believe this is the default behavior in Desktop Outlook, for which we have documented a guideline to always check for null before doing any work in the Reference: |
Can you provide more details about the environment setup?
As per our docs inReplyTo is supported in requirement set 1.14 (https://learn.microsoft.com/en-us/javascript/api/outlook/office.messagecompose?view=outlook-js-1.14&preserve-view=true#outlook-office-messagecompose-inreplyto-member) and Exchange on-prem only supports upto 1.5 |
@whoanuragverma my initial testing was using OWA and it still did not work there either. For on-prem, my testing was in new outlook using Exchange 2019 SE. The add-in deployed via an admin. In regards to the docs, my understanding is that even though the Exchange server states it only supports up to v1.5, that if a client with support for newer requirement sets is used, there is a chance that some of the functionality will work. I'm pretty sure there are definitely cases of this being true. In general though, it is absolutely ridiculous that on-prem doesn't support anything newer than what was available in 2017 (8 years ago). How can Microsoft be pushing add-in development and not update their on-premise support for that long? |
Hi @cody-lettau |
@neprasad-microsoft I can understand that it has dependencies on the server. That said, documentation should definitely highlight this lack of support for on-prem environments. But the main issue here is that I also saw the same issue when trying to use it in OWA. |
Sure @cody-lettau , we would like to update our docs if it was missed. But I think for this property it is documented that this is available after 1.14 - https://learn.microsoft.com/en-us/javascript/api/outlook/office.messagecompose?view=outlook-js-1.14&preserve-view=true#outlook-office-messagecompose-inreplyto-member When you say OWA, do you mean On-Prem OWA or Exchange Online? In case of On-Prem, OWA will have the same limitations. |
@neprasad-microsoft I mean OWA using Exchange Online. This feature does not appear to work anywhere. This bug should not be closed. |
@cody-lettau We are unable to reproduce this issue on our end. Could you please provide the following details to help us investigate further?
Please create a private Git repository and share the files. Please grant access to @exextoc. |
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
The new
Office.context.mailbox.item.inReplyTo
property is not available on an item being composed in reply to an item or when forwarding an item.Your Environment
Expected behavior
I would expect that the parent message id value is available on this property (
Office.context.mailbox.item.inReplyTo
).Current behavior
The property does not exist on the item, resulting in
undefined
if used. This was seen in OWA (did not test on Windows or Mac).Steps to reproduce
Office.context.mailbox.item.inReplyTo
for the parent id.Provide additional details
Context
Add-ins need the ability to easily get the message id of the item being replied to or forwarded. Relying on Rest/Graph/EWS is not sufficient as it takes time for the item to be synced to Exchange and then it takes multiple calls to actually get the correct/usable ID (I have tried this using EWS as I have an on-prem requirement).
The text was updated successfully, but these errors were encountered: