I'd like to develop an Outlook Add-in which adds some HTML content to the body of the email. If the user has this add-in installed, I'd like to add interactivity to the elements (for instance, replacing anchor tags with actual buttons that could trigger either a command, or open a task panel).
This would make the UX better by managing the entire user flow directly from the email content, without having to visit an external app.
Currently. I noticed that doing the following will return the string of the HTML content. But there's no way to actually addEventListener or replace elements in any way.
Office.context.mailbox.item.body.getAsync(Office.CoercionType.Html, callback)
If anyone could point me to the right direction, i'd appreciate it!