Reputation: 95
Anyone has an idea when i click the send button, It will call the sample outlook plugin i created?
Upvotes: 0
Views: 693
Reputation: 49397
The yeoman generator doesn't scaffold add-in solutions that handle the ItemSend
or Launch events
out of the box. So, you need to add such functionality on your own after scaffolding a skeleton.
There are basically two main ways of handling the Send
button clicks in Outlook web add-ins:
The on-send
feature or so-called the ItemSend
event. The on-send feature for Outlook add-ins provides a way to handle a message or meeting item, or block users from certain actions, and allows an add-in to set certain properties on send. The event allows displaying custom dialog windows in Outlook for processing the users input.
Another option is Smart Alerts which is a newer version of the on-send feature. It was released in requirement set 1.12 and introduced the OnMessageSend
and OnAppointmentSend
events. Similar to the on-send feature, Smart Alerts
enables your add-in to check that certain conditions are met before a mail item is sent. Smart Alerts
differentiates itself from the on-send feature as follows:
AppSource
if the manifest's SendMode
property is set to the SoftBlock
or PromptUser
option. For more information on the differences between Smart Alerts
and the on-send
feature, see Differences between Smart Alerts and the on-send feature.Upvotes: 0