Skip to content
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

Outlook Addin API body.getAsync missing some styles on mac #149

Closed
bchenhs opened this issue May 21, 2018 · 17 comments
Closed

Outlook Addin API body.getAsync missing some styles on mac #149

bchenhs opened this issue May 21, 2018 · 17 comments
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Status: fixed Fix is deployed and available to customer

Comments

@bchenhs
Copy link

bchenhs commented May 21, 2018

Office.context.mailbox.item.body.getAsync() on mac misses certain styles, such as bullet points.

Details:

  • CoercionType.Html is used.
  • Only occurs on Outlook for Mac client, not on OWA.

Expected Behavior

Insert the following bullet in message body using the client UI:
• Testing bullets

Current Behavior

Call getAsync and receive the following:
<p class=MsoListParagraph style='text-indent:0in'>Testing bullets</p>
Call setAsync and expect the bullet to disappear:
Testing bullets

Steps to Reproduce, or Live Example

See above

Context

I understand the documentation indicates:
Body.getAsync and Body.setAsync methods are not idempotent.
But the bullet is inserted from the Outlook UI itself and I expect the API to fully support it.

Your Environment

  • Outlook for Mac Version 16.13
  • macOS High Sierra 10.13.2

Stackoverflow question here:
https://stackoverflow.com/questions/50451394/outlook-addin-api-body-getasync-missing-some-styles-on-mac

@mlafleur mlafleur added the Area: Outlook Issue related to Outlook add-ins label May 21, 2018
@bchenhs
Copy link
Author

bchenhs commented May 22, 2018

@mlafleur Thanks for tagging the issue and responding on stackoverflow.

For the Outlook team, is there an alternative way to get/set the body HTML (from a javascript addin) during message compose that we can look into, before this issue is investigated/resolved?

Thanks.

@macOutlookExtensibility
Copy link
Collaborator

Thanks for raising it. We are working on towards fixing it.

@bchenhs
Copy link
Author

bchenhs commented Sep 20, 2018

@macOutlookExtensibility Hi, is there an update on this issue or ETA for the fix? Thanks.

@bchenhs
Copy link
Author

bchenhs commented Oct 19, 2018

@macOutlookExtensibility @exextoc Any updates on the fix progress? We have many clients affected by this issue. Thanks.

@vyazadji
Copy link

@macOutlookExtensibility @exextoc Any updates ?

@vyazadji
Copy link

As a workaround you can save it Exchange:

Office.context.mailbox.item.saveAsync()

and then get the body via

Office.context.mailbox.makeEwsRequestAsync()

@vyazadji
Copy link

;(

@ElizabethSamuel-MSFT
Copy link
Contributor

@macOutlookExtensibility Has this issue been fixed? Thanks.

@malsabbagh
Copy link

The issue is still reproducible as of today.

@bchenhs
Copy link
Author

bchenhs commented May 7, 2020

@ElizabethSamuel-MSFT @macOutlookExtensibility Is there an update on this issue? There are other similar issues reported (e.g. #402), and it impacts our add-in users on Mac.

@arturs-buls
Copy link

Issue still present....

As a workaround you can save it Exchange:

Office.context.mailbox.item.saveAsync()

and then get the body via

Office.context.mailbox.makeEwsRequestAsync()

Unfortunately it will not work for all cases. Per docs, it may take some time until ID can be used in API if outlook is in caching mode (afaik it is a default for Outlook desktop for Windows). Because of this - you can never be sure if you will receive current body or body from last draft save.

@vyazadji
Copy link

vyazadji commented Jun 15, 2020

I am no longer working on this project. But as far as I remember, we added a check that new ID after Office.context.mailbox.item.saveAsync() was really saved in Exchange. It looked messy, but we didn't find a better way how to do it.

Here is more info about this issue:
https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/suggestions/34593391-immediate-synced-to-the-server-saveasync-to-get

@fiftydegrees
Copy link

The issue is still happening; is fixing this issue still in the roadmap?

@exextoc
Copy link
Collaborator

exextoc commented Dec 14, 2021

It is in our backlog and unfortunately we do not have a timeline to share as of now.Can you please help us understand what is the impact you are having with this issue

@fiftydegrees
Copy link

Thanks @exextoc for your reply.

In our case, we provide a spellchecking tool; errors found are displayed in a task pane, and the user can click on a suggestion to apply a correction. As there is no API to replace the text at a specific index, or delete a given length at any index, we retrieve the whole text, update it, then re-inject it using setAsync. Unfortunately, as some pieces of styles are lost in the getAsync, each time the user applies a suggestion, the formatting is broken on lists.

Hope this helps to find a workaround!

@exextoc
Copy link
Collaborator

exextoc commented Dec 22, 2021

@fiftydegrees We do not have a workaround for this yet. Can you also please share number of impacted users?

@exextoc exextoc added the Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown label Jan 5, 2022
@exextoc exextoc added Status: fixed Fix is deployed and available to customer and removed Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown labels Dec 15, 2023
@exextoc
Copy link
Collaborator

exextoc commented Dec 15, 2023

This issue is fixed in New Outlook Mac version >= 16.75

@exextoc exextoc closed this as completed Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Issue related to Outlook add-ins Status: fixed Fix is deployed and available to customer
Projects
None yet
Development

No branches or pull requests

9 participants