In this demo video Simon Jäger explains how you can build ASP.NET Web API for validating and responding to Outlook Notifications - created with the Outlook Notifications REST API. Video and provided sample covers concept of subscribing for notifications, validating notifications URLs and inspecting the monitored entities by calling the Outlook REST API using persistent tokens.
You can learn more about the Outlook Notifications REST API and its operations at: https://msdn.microsoft.com/en-us/office/office365/api/notify-rest-operations
Using this event driven approach is a much more solid way of dealing with changes in the resources and entities in Outlook. As opposed to polling the Outlook REST APIs directly, this is much more lightweight (especially when the amount of items is large). With scale, this approach becomes essential for a sustainable service architecture.
Read more about this sample at: http://simonjaeger.com/call-me-back-outlook-notifications-rest-api.
Demo presenter: Simon Jäger
See following links for additional details around covered topics.
- Call me back - Outlook Notifications REST API - blog post
- OutlookNotificationsAPI.WebAPI - Actual code in PnP code gallery
- Outlook Notifications REST API reference - MSDN
- Webhooks for Mail, Calendar and Contacts REST notifications - dev.outlook.com
If you have any feedback or comments related on this video, please use the Office 365 Developer Patterns and Practices Yammer group to provider your input. Thx for your interest advance.