Forum Discussion

marmaghan's avatar
marmaghan
Copper Contributor
Jul 11, 2025

Update Email Body in Read Mode Using Office.js in New Outlook/Web Outlook

Hello Community,

We are creating an Outlook add-in that encrypts and decrypts emails using our in-house proprietry algo.

As part of the decryption process, we need to modify the email body in read mode after decrypting the content.

We are currently using the following Office.js API:

 

Office.context.mailbox.item.display.body.setAsync(bodyText, (asyncResult) => {
    // Handle result
});

 

This works as expected in Classic Outlook. However, it does not seem to be supported in the new Outlook or Outlook on the web (OWA).

My question:

Is there currently any way (including beta APIs) to update the body of an email in read mode using Office.js in the new Outlook or OWA?

If not, is there a recommended workaround or a roadmap for this feature in future Office.js versions?

We are open to using preview or beta APIs if necessary, as this feature is critical to our add-in functionality.

 

Thanks in advance for your support!

1 Reply

  • Wutisngwu's avatar
    Wutisngwu
    Iron Contributor

    Updating email body with Office JS's setAsync method requires add-in permissions.

Resources