How do I rewrite a message body with a Outlook add-in?

Joe Emenaker 1 Reputation point
2021-10-04T04:13:38.22+00:00

I'm devising an Outlook add-in that can re-write the body of a message if it meets certain criteria (similar to what an ad-remover would do).

I've seen Microsoft's tutorial on how to make a compose add-in (https://learn.microsoft.com/en-us/office/dev/add-ins/tutorials/outlook-tutorial), which alters a message being composed, but I don't know how to access the DOM of a message about to be presented so that I can modify it. Has anybody done something like this, before?

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,536 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,915 questions
{count} votes