outlookoffice-jsoutlook-addinoutlook-web-addinsyeoman-generator

Officejs - Addin Outlook - SmartAlerts


I developing addin for outlook and i using officejs framework and Yeoman Generator. I use SmartAlerts because with ItemSend event i can't deploy my plugin into Appsource. I have a problem: i would like to call/import my modules from typescript files into launchevent.js, a file to use for event "OnMessageSend". I see on documentation that is not possible.

I tried to create a new bundle but it work only if into file there is a import istruction and in this file i can't use it. How can i do?

Thanks


Solution

  • You may create a new add-in skeleton in TypeScript where you can import the required modules to the event handler's module. The TS compiler will produce the required JS files in the output folder. Webpack links code chunks with web pages. But that is not great idea to mix JS and TS files in the same solution. Use one or another programming language for your solutions. I prefer using TypeScript.