Office Add-in Samples – December 2021 update

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Tech Community.

The Office Add-ins developer platform team has new updates to share this month on Office Add-in samples.

Encrypt attachments and more with Outlook event-based activation




Contributed by Eric Legault

This sample showcases how to use event-based activation in an Outlook add-in when the user composes an email or appointment/meeting request. It demonstrates how to run tasks based on events that fire when certain data changes when the user:

  • adds an attachment to an email or appointment/meeting request
  • adds recipients or distributions lists as required or optional attendees in a meeting request
  • changes the start or end date or time in an appointment/meeting request
  • adds a notification message to the item when a new email or appointment/meeting request is created, instructing the user to open the task pane for further information

Check out the code sample: Use Outlook event-based activation to encrypt attachments, process meeting request attendees and react to appointment date/time changes

Get started with hello world samples

Learn how to build the simplest Office Add-in with only a manifest, HTML web page, and a logo. These samples will help you understand the fundamental parts of an Office Add-in.

Get started with the following code samples:


Thank you to our contributors who are actively helping each month with the Office Add-ins community effort.

maarten-van-stam-github-photo.pngMaarten van Stam

Helping review PRs and issues on Office-Add-ins-samples.



eric-legault-github-photo.pngEric Legault

Creating the sample for encrypting attachments in Outlook using event-based activation.



Office Add-ins are part of the Microsoft 365 PnP community. Please consider contributing by going to and helping with PRs, issues, or contributing new samples.

Additional resources


REMEMBER: these articles are REPUBLISHED. Your best bet to get a reply is to follow the link at the top of the post to the ORIGINAL post! BUT you're more than welcome to start discussions here:

This site uses Akismet to reduce spam. Learn how your comment data is processed.