Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modify message with an Outlook web add-in (when reading email, not composing)

I'm trying to establish if this is even possible:

Can an outlook web add-in (i.e. a JavaScript add-in that works on the web and in outlook, not a COM based add-in) modify the body of an email while in read mode (i.e. the user is reading an email, not composing a new email or replying to an email).

What I need to do is trigger the add-in if the email contains hyperlinks (looks like I can do that with a contextual add-in using a regular expression) and then modify those hyperlinks (change the href or add an onClick event handler) so if the user clicks them the behaviour is different.

like image 332
Darren Avatar asked May 10 '19 10:05

Darren


2 Answers

Based on @OutlookAdd-insTeam-MSFT comment I'll post my own answer:

You cannot modify the body of an email in read mode.

:(

like image 98
Darren Avatar answered Sep 30 '22 19:09

Darren


Cant comment. Not enough rep.

I am looking at the documentation for Read Scenario I dont see anything related to set property.

However I do see something about extracting info from an item, more importantly extracting URL's

May be you can extact URL's do your modifications and with the new content you can create a New message item or even Reply and Reply all

like image 45
Namig Ismayilov Avatar answered Sep 30 '22 20:09

Namig Ismayilov