MatiP-6034 avatar image
0 Votes"
MatiP-6034 asked emizhang-msft edited

Communication between OnMessageSend event and the add-in (Outlook)

The case concerns the Outlook add-in, namely the communication between the OnMessageSend event and the add-in.

Short description:
The user is authorized in an external service. After logging in, he receives a 'Token' that is used in communication between the add-in and the external service. The token is stored in the cookies.

Add-in is designed for Windows platform.
The use of the OnMessageSend event is described here

It looks like the OnMessageSend event handling is performed regardless of the environment in which the add-in is running. So I can't read the cookies that my add-on has saved (communication via localStorage also doesn't work). Unless I am wrong and it is otherwise.

Problem :
My problem is that in the handling of the OnMessageSend event I have to do a POST to an external service, to do this I need a 'Token' that has been saved in cookies by an add-in.

Is there a way to communicate between the add-in and the OnMessageSend event handler?
How can I pass a 'Token' from the add-in to the OnMessageSend event handler?

Thank you in advance for any hints

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers