[Outlook add in]Issue with Compose Launch event

Pepper Cloud 0 Reputation points
2024-05-06T06:25:06.0666667+00:00

Hi There, We Have developed an outlook add-in, I need a help on below implementation. Whenever I open a "Compose New Email", I have to open my add-in I know I have to use the LaunchEvent to cat the trigger. My manifest is as below <ExtensionPoint xsi:type="LaunchEvent"> <LaunchEvents> <LaunchEvent Type="OnNewMessageCompose" FunctionName="onMessageComposeHandler" /> </LaunchEvents> </ExtensionPoint> But what is the code to open my add-in ? onMessageComposeHandler I am using Office.addin.showAsTaskpane(); but getting error Or, are there any other way to trigger/open the addin henever we are in a new email compose modal ? function onMessageComposeHandler() { Office.addin.showAsTaskpane(); } I tried with the mailbox version 1.3 and 1.4, but not working Getting the error like, "showAsTaskpane" of undefined

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,205 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,318 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,680 questions
Microsoft 365 Publishing
Microsoft 365 Publishing
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line. Publishing: The process of preparing, producing, and releasing content for distribution or sale.
604 questions
{count} votes