From the course: SharePoint Framework Essential Training

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Webhooks

Webhooks

- [Instructor] Next, let's talk about another amazing choice a SharePoint developer has, which is webhooks. So far everything I've talked about is you calling SharePoint or you residing on the surface of SharePoint and calling SharePoint APIs. This is the reverse. This is where SharePoint calls you and let you know that something you're interested in happened. So here is how you set up a webhook. You create an internet-facing listener. This is simply an API, a web service. This is a web service that SharePoint Online can reach out to over HTTPS. So yes, it must be internet-facing. Next, you need to create a subscription. This is you informing SharePoint over a simple POST request that, hey, you are interested in listening to a certain event. As I mentioned, this is simple POST request. Historically speaking, we've done this using the SharePoint REST API, but it is deeply baked into the add-in model, which is going away. So going forward, we will do so using Microsoft Graph, and that…

Contents