This article will summarize the development of Add-Ins for Outlook.
Use the basic template using Yeoman and Yeoman Generator.
Development environment
- OS: Windows 11
- .Net version: 8.0
- Development tool: Visual Studio Code
- Node.js version: 18.20.4
- Yeoman version: 5.0.0
- Development language: React, Typescript
1. Check Yeoman Generator
\> yo --version
If Yeoman generator is not installed, install it as follows.
\> npm install -g yo generator-office
2. Create a project
\> yo office
> Select Office Add-in Task Pane project using React framework.
3. Select Script type
> Select TypeScript.
4. Enter the Add-In name
Enter 'First Outlook AddIn'
6. Select manifest type
XML manifest : Manifest in XML format. It cannot be linked with other M365 apps other than Outlook.
unified manifest for microsoft 365 : Manifest in JSON format. It is an expanded version of the one used in the Teams app. It can be expanded to other apps in M365.
unified manifest for microsoft 365 : Manifest in JSON format. It is an expanded version of the one used in the Teams app. It can be expanded to other apps in M365.
7. When all selections are made, a project is created.
- <ExtensionPoint xsi:type="MessageComposeCommandSurface"> When the message was written
- <Control xsi:type="Button" id="msgComposeOpenPaneButton"> ShowTaskpane Button
- <Control xsi:type="Button" id="ActionButton"> Action Button
9. Build and run the project
~\First Outlook Addin\> npm install
~\First Outlook Addin\> npm start
10. Check in Outlook
When you open the Outlook message composition window, two buttons are created on the top ribbon.

1) Show Task Pane Click
2) Perform an action Click


Comments
Post a Comment