In this PnP Webcast we concentrated on showing how to get started with SharePoint Webhooks and what are the benefits of using SharePoint Webhooks compare to classic remote event receivers. SharePoint Webhooks allow developers to build service integration which subscribe to receive notifications on specific events that occur in SharePoint. When one of those events are triggered, SharePoint will send a HTTP POST payload to subscriber. SharePoint Webhooks is supported for asynchronous events, like for ItemAdded or ItemAttachmentAdded.
To be able to subscribe to SharePoint Webhooks, you’ll need to have external service, which will response on the subscribed validation messages and will process the incoming events. You can use Azure Functions to receiver the notifications or alternatively host your own custom service for processing Webhook events. This webcast explains these both models in the presentation and in the demo section.
SharePoint Webhooks are generally available in SharePoint Online since January 2017.
Presentation covers following topics:
- What are Webhooks?
- Process for subscribing to a SharePoint Webhook
- Event notifications from SharePoint
- Processing a notification event
- GetChanges() pattern
- SharePoint Webhooks and Azure Functions
- Why use Webhooks over Remote Event Receivers?
- Debugging your notification service
- Additional resources
Webcast demo shows following details
- Walkthrough of the sample application (Azure AD app), which allows registration of Webhooks to SharePoint sites
- Explanation how the Azure Functions can be used for receiving your events from SharePoint Online tenant
- Walkthrough of the code behind the provided sample application
Presentation used in this web cast is available from http://docs.com/OfficeDevPnP.
More guidance and details around the SharePoint Webhooks can be found from SharePoint developer center.
Video at YouTube.
See following resources around the SharePoint Webhooks
- Overview of SharePoint webhooks
- Using Azure Functions with SharePoint Webhooks
- SharePoint Webhooks is now Generally Available – Buid service-oriented processes in SharePoint
- Sample – SharePoint Webhooks Azure AD reference implementation
- Sample – SharePoint Webhooks reference implementation
- Sample – Node.js SharePoint Webhook application
- SharePoint Developer Center at dev.office.com
- PostMan tool– Used in the demo
- ngrok tool for on-premises development with SharePoint Webhooks
What is SharePoint Patterns & Practices (PnP) webcast series?
SharePoint Patterns & Practices (PnP) webcast series covers different patterns, practices and topics around development with Office 365 and SharePoint. Majority of the topics are valid for the Office 365 and SharePoint on-premises. Our objective is to release new around 30 minute long web cast each Monday with few slides and a live demo on the covered topic. All web casts are published at the PnP YouTube channel with additional references on the existing materials.
PnP is community driven open source project where Microsoft and external community members are sharing their learning’s around implementation practices for Office 365 and SharePoint on-premises (add-in model). Active development and contributions happen in our GitHub repositories under dev branch and each month there will be a master merge (monthly release) with more comprehensive testing and communications. Latest activities and future plans are covered in our monthly community calls which are open for anyone from the community. Download invite from http://aka.ms/SPPnP-Call.
This is work done by the community for the community without any actual full time people. It’s been great to find both internal and external people who are willing to assist and share their learning’s for the benefit of others. This way we can build on the common knowledge of us all. Currently program is facilitated by Microsoft, but already at this point we have multiple community members as part of the Core team and we are looking to extend the Core team with more community members.
If you have any questions, comments or feedback around PnP program or this blog post, please use the Microsoft Tech Community (SharePoint Developer group).
“Sharing is caring”
Vesa Juvonen, Senior Program Manager, SharePoint, Microsoft – 30th of January 2017