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

When replying or forwarding an email body.getAsync() returns an incorrect value #4360

Closed
bchenhs opened this issue Apr 12, 2024 · 11 comments
Closed
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info Status: no recent activity Issue or PR is stale (no recent activity)

Comments

@bchenhs
Copy link

bchenhs commented Apr 12, 2024

Provide required information needed to triage your issue

Same symptoms as #3988

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: Office on the web, the New Outlook for Windows
  • Host [Excel, Word, PowerPoint, etc.]: Outlook
  • Office version number:
You have Microsoft Outlook Version 1.2024.403.300 (Production).
Client Version is 20240405002.12 .
  • Operating System: MacOS 14.4.1
  • Browser (if using Office on the web): Chrome

Expected behavior

Appropriately get the value of the mail body.

Current behavior

The quoted part (Original Message) of the email body is duplicated.

Steps to reproduce

  1. Open a received email and press the reply button. We see this issue on the Microsoft Viva emails.
  2. Type anything in the email
  3. Execute body.getAsync.

Link to live example(s)

These are taken from #3988

Javascript

Office.onReady().then(() => {
    Office.context.mailbox.item.body.getAsync(Office.CoercionType.Html, (result) => {
            document.getElementById("htmlBody").innerHTML = escapeHtml(result.value);
    });
    Office.context.mailbox.item.body.getAsync(Office.CoercionType.Text, (result) => {
            document.getElementById("textBody").innerHTML = escapeHtml(result.value);
    });
});

function escapeHtml(html) {
    return html
        .replace(/&/g, "&")
        .replace(/</g, "&lt;")
        .replace(/>/g, "&gt;")
        .replace(/"/g, "&quot;")
        .replace(/'/g, "&#039;");
}

HTML

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
</head>
<body>
    <p>--HTML Body--</p>
    <p id="htmlBody"></p>
    <br><br>
    <p>--Text Body--</p>
    <p id="textBody"></p>
    <script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js"></script>
    <script src="taskpane.js"></script>
</body>
</html>

Provide additional details

  • This appears to be part of an active rollout on the Current Channel. We can repro this on some accounts and not others.
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Apr 12, 2024
@exextoc exextoc added Needs: attention 👋 Waiting on Microsoft to provide feedback Area: Outlook Issue related to Outlook add-ins and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Apr 12, 2024
@exextoc exextoc self-assigned this Apr 12, 2024
@hsptkt
Copy link

hsptkt commented Apr 12, 2024

Hey, just wanted to chime in with some more details of our impact.

We're unsure of how far along this rollout is, but this would potentially affect over 50k of our users using one of our core features once fully rolled out.

We're not able to provide a minimally reproducible example, because we are facing issues with Script Lab on Outlook web, but the cause and effects all match the linked issues #3988.

Thank you.

@bchenhs
Copy link
Author

bchenhs commented Apr 15, 2024

Hi @exextoc @ajays-msft is there any update on this issue? Do you need more debug information from me? We are getting more user reports of this issue, and it is disruptive to their ability to reply and forward emails.

@ajays-msft
Copy link

@bchenhs - I can repro this, and we are actively working on the fix. Will update you when it is available.

@bchenhs
Copy link
Author

bchenhs commented Apr 16, 2024

Thank you, @ajays-msft!

@ajays-msft
Copy link

Thiis is fixed now.

@ajays-msft ajays-msft added Status: fixed Fix is deployed and available to customer and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Apr 17, 2024
@bchenhs
Copy link
Author

bchenhs commented Apr 23, 2024

Hi @ajays-msft @exextoc Looks like this issue came back either yesterday or today. We've received multiple users reporting this and we were able to reproduce it. Did another update break/undid the previous fix?

@bchenhs
Copy link
Author

bchenhs commented Apr 23, 2024

We've opened #4392 to track it.

@neprasad-microsoft
Copy link

The fix for this issue caused another issue (#4392 ) . So, we are reverting this and are working on this issue. Unfortunately, we do not have any timelines for this right now.

@neprasad-microsoft neprasad-microsoft added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Status: fixed Fix is deployed and available to customer labels Apr 29, 2024
@hsptkt
Copy link

hsptkt commented Apr 29, 2024

Hi @neprasad-microsoft, thank you for the details and update!

We just verified that this is now resolved on our side. We don't think further change is needed, especially since we've had some back and forth / regressions with the fix here.

Are you able to confirm the current behavior is now all set - if not, could we get more info if we need to expect an upcoming change?

@DivyaPatidar
Copy link

@hsptkt Yes, no changes are expected at the moment.

@DivyaPatidar DivyaPatidar added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels May 10, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: no recent activity Issue or PR is stale (no recent activity) label May 14, 2024
Copy link
Contributor

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!

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 Needs: author feedback Waiting for author (creator) of Issue to provide more info Status: no recent activity Issue or PR is stale (no recent activity)
Projects
None yet
Development

No branches or pull requests

6 participants