R. Mohammad
R. Mohammad

Reputation: 95

Outlook open add-in when email was sent or the sent button is clicked

Anyone has an idea when i click the send button, It will call the sample outlook plugin i created?

https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/outlook-quickstart?tabs=yeomangenerator

enter image description here

enter image description here

Upvotes: 0

Views: 693

Answers (1)

Eugene Astafiev
Eugene Astafiev

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:

  1. 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.

  2. 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:

    • It offers send mode options when you want to provide your users with optional recommendations instead of mandatory conditions.
    • It allows your add-in to be published to 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

Related Questions