Outlook 365 WEB ADDIN onMessageSend

Haji Ahmed2 0 Reputation points
2024-02-13T08:18:01.2266667+00:00

Hi Every one, I have developed an Outlook 365 Web Addin. This Addin saves email subject and body on send(Compose) email. This Addin has also a task pane, some parameter are selected from this task pane. Compose email and select some values from task pane , if send button clicked email sent and called an API to save subject and body along with some parameters from task pane. Now when send button is clicked a message shown "Addin for Outlook is working on your request " even if task pane is not open. I want Addin should not invoke/trigger if task pane is not open and "Addin for Outlook is working on your request " message should not displayed. Here is portion of manifest for onSendMessage <ExtensionPoint xsi:type="LaunchEvent"> <LaunchEvents>       <LaunchEvent Type="OnMessageSend" FunctionName="onMessageSendHandler" SendMode="SoftBlock"/>      </LaunchEvents>      <SourceLocation resid="WebViewRuntime"/>   </ExtensionPoint> and bind in UI-less json file Office.actions.associate("onMessageSendHandler", onItemSendHandler);

Microsoft 365 and Office | Development | Other
Outlook | Windows | Classic Outlook for Windows | For business
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.