To create a Node.js event handler for the Outlook Add-In Item Send Event, follow these steps:
Open your Outlook Add-In project in Visual Studio or your preferred code editor.
Navigate to the Manifest.xml
file and add the following code snippet to register the ItemSend event:
<Events>
<Event Type="ItemSend" FunctionName="onItemSend" />
</Events>
.js
file of your Add-In, define the onItemSend
function:function onItemSend(event) {
// Handle the event logic here
}
Office.context.mailbox.addHandlerAsync
method to add the event handler:Office.context.mailbox.addHandlerAsync(Office.EventType.ItemSend, onItemSend);
Asked: 2023-06-08 21:37:03 +0000
Seen: 9 times
Last updated: Jun 08 '23