page_type | urlFragment | products | languages | extensions | description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
office-outlook-add-in-tutorial |
|
|
|
A completed version of the step-by-step Outlook tutorial hosted on learn.microsoft.com. |
This sample is the result of completing the Tutorial: Build a message compose Outlook add-in. It was constructed with the Yeoman generator for Office Add-ins.
The tutorial gives step-by-step instructions on how to add functionality alongside explanations as to why code is being added. Use this sample if you want to explore and try the completed code, or if you need to debug any issues you encountered while following the tutorial.
This sample demonstrates the basics of working with a compose message in Outlook. The functions collect information from the user, fetch data from an external service, implement a function command, and implement a task pane that inserts content into the body of a message. The sample also shows how to use a dialog box.
- Outlook on Windows
- Outlook on Mac
- Outlook on the web
-
Office connected to a Microsoft 365 subscription (including Office on the web).
-
Node.js version 16 or greater.
-
npm version 8 or greater.
-
Set up GitHub gists on your account.
Solution | Author(s) |
---|---|
Learn the basics of Outlook add-ins | Microsoft |
Version | Date | Comments |
---|---|---|
1.0 | 9-12-2023 | Initial release |
-
Fork and download this repo.
-
Go to the Samples/tutorials/outlook-tutorial/Git the gist folder via the command line.
-
Run
npm install
. -
Start the local web server and sideload your add-in.
-
To test your add-in in Outlook, run the following command in the root directory of your
Git the gist
project. This starts the local web server (if it's not already running) and opens Outlook with your add-in loaded.npm start
If your add-in doesn't sideload in Outlook, manually sideload it by following the instructions in Sideload Outlook add-ins for testing.
-
-
In Outlook, compose a new message.
-
In the message window, choose the Insert default gist button in the ribbon. This opens a dialog where you add your GitHub username and select the default gist.
In Outlook on Windows, you may need to close and reopen the new message window to pick up the latest settings from the dialog.
-
In the message window, choose the Insert gist button in ribbon. This opens a task pane where you select the GitHub gist you want to insert into the message body.
The version of this sample that you create step-by-step is found in the article Tutorial: Build a message compose Outlook add-in.
Copyright (c) 2023 Microsoft Corporation. All rights reserved.
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.