Comments (7)
@hsptkt @bchenhs Thanks for providing more context. We are invesigating this issue further and we will update this thread once we have an update.
Internal Tracking ID: 4530717
from office-js.
@bchenhs we are not able to repro the issue on our side. Could you please share a repro video of the issue?
from office-js.
Hi @anjalitp I've updated the description and sample script to better demonstrate the issue. The missing step in the original description was calling body.setAsync
.
from office-js.
Thanks for updating the issue. We are able to repro the issue with body.setAsync call. It seems like body.setAsync call is not replacing the quoted text in the original body, hence the subsequent getAsync call shows the quoted text twice.
This looks like expected behaviour for body.setAsync API on OWA but we would like to understand more about your Add-in use case which is being blocked by this issue. Could you please share the same?
from office-js.
@anjalitp Can you please elaborate on how this looks like expected behaviour for body.setAsync
when the API specifies it "Replaces the entire body with the specified text."?
The example on the API documentation site states:
Office.context.mailbox.item.body.setAsync(
"<b>(replaces all body, including threads you are replying to that may be on the bottom)</b>",
{ coercionType: "html", asyncContext: "This is passed to the callback" },
function callback(result) {
// Process the result.
});
This is also a recent change in behaviour. Prior to a few day ago, it was working as expected and followed the API spec.
from office-js.
Hi @anjalitp @exextoc, just to add to this report, the symptoms here fully match the other issues linked (#3988 and #4360), where the add-in team was able to confirm there was a regression. Tagging in @ajays-msft in case he can add context as well.
from office-js.
In OWA, getBody or setBody reflects what can be possible in from the UI. For example, if the messages are grouped by conversation, reply/forward will show quoted text (... which requires user to expand to see the full message). When there is quoted text, get/set body will only get/set the editable content in the email.
from office-js.
Related Issues (20)
- Outlook 365 add-in not loading on MAC/OS new Outlook app. HOT 8
- Powerpoint Add-in is not updating automatically without any notification HOT 5
- Custom function handling of Entity Value is broken again HOT 6
- Office.context.roamingSettings.get() size limit HOT 2
- Word close API not working HOT 6
- Excel close is not working HOT 10
- Powperpoint close API HOT 6
- Manifest file sideloads on Excel web but does not sideload on Mac or Windows os HOT 2
- Opening dialog in iframe for an Excel custom function handler fails on alternate invocations HOT 6
- Outlook Add-in - Call to mailbox.getUserIdentityTokenAsync returning undefined token for only some Outlook accounts HOT 12
- Assistance Needed with Outlook Add-In installing Manifest for older version of Outlook HOT 4
- MIME parts returned by getAsFileAsync() don't include Content-Disposition on Outlook Win32 HOT 1
- Permission under manifest file HOT 5
- Content copy pasted as table not being considered as body text using getAsync(Office.CoercionType.Text) HOT 5
- categories.addAsync is failing with operation not supported error in new outlook in windows HOT 2
- Outlook add-ins are not working for a Gmail account. HOT 11
- displayMessageFormAsync does not work in Mac HOT 1
- Way to turn off track changes from office documents HOT 9
- Create Presentation/Excel API HOT 5
- Highlight custom tab on opening document HOT 12
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.