Search code examples
office-jsoutlook-web-addins

Outlook add-in: How to remove (or not include) original email when replying


Is anyone aware of a way to remove the original message from being included in a reply? I cannot find anything in the documentation or around the web in regards to doing so. Essentially, I want to reply to an email with only the content that I include in the HTML body.

The reply does not appear to be a part of the html content when viewing it in the onSend handler. It must be added after the fact and I'm unable to find a way to not include it.

Edit: I believe the original message is appended by an "appendonsend" function that Microsoft runs after any other item-send function runs.

If I am to change my read settings to show messages individually, this does not appear to run and it works how I would like. But I don't want to require users to move away from grouping messages as conversations as that reduces their productivity.


Solution

  • The behaviour observered is by design in OWA. body.getAsync API will return the complete text only if '...' button is clicked.

    The functionality to remove email body during on send, is not a part of the product. We track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process.