Skip to content

Template to get start started writing a TaskPane Outlook Add-in using python for the backend

Notifications You must be signed in to change notification settings

Masterjx9/Outlook-Addin-TaskPane-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Outlook-Addin-TaskPane-python

Template to get start started writing a TaskPane Outlook Add-in using python for the backend

This template is a modified version of the office Addin taskpane JS repository here: https://github.com/OfficeDev/Office-Addin-TaskPane-JS with a combination of the python webapp repository from here: https://github.com/Azure-Samples/python-docs-hello-world. The html files are placed in the Templates folder while the assests pictures, javascript files, and css files are placed in the static folder. This is to help flask know where html, css, and javascript files would be.

Version Updates

  • 1.0.0.1 - Integrated https into development build using office-addin-dev-certs. We re-wrote the office-addin-dev-certs from typescript to python.
  • 1.0.0.0 - Initial release

Test webapp before deployment

You can run flask locally for development

  1. Download the zip or use git clone https://github.com/Masterjx9/Outlook-Addin-TaskPane-python.git then go to the root of the folder and perform the following commands:
py -3 -m venv .venv
.venv\scripts\activate
pip install -r requirements.txt
  1. In cmd, vscode, or powershell, go to the root of your folder and type python app.py
  2. Go to OWA and add your maniest.xml. There are multiple methods dependings on your permissions and rights to your azure ad -

Note - You will have to change your manifest file to the hosting url later. So you will have to remove and readd the new manifest file later on.

Deploy the sample

Follow the same instructions given from the microsoft website: https://docs.microsoft.com/en-us/azure/app-service/quickstart-python?tabs=powershell&pivots=python-framework-flask#deploy-the-sample

Once the sample is deployed, test your webapp's urls to make sure they work. After, you can modify the manifest_python.xml to route all https://localhost:5000 urls to your own hosted url.

About

Template to get start started writing a TaskPane Outlook Add-in using python for the backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published