From the course: SharePoint Framework Essential Training

Unlock this course with a free trial

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

Demo: Create a webhook

Demo: Create a webhook

- [Instructor] Now let's look at a demonstration of how webhooks work, as in, I'm going to make a change to this list over here and I have a custom web API, written in Visual Studio over here. This web API could be in any language you prefer, but I just choose to do it in .net. And the idea here is that I want to say, make a change to this list, and I would like SharePoint Online to notify me. So there are a lot of moving parts here. The first thing I need to do is set up a subscription and then listen on that subscription URL. So let's walk through the various moving parts. I'm going to use Microsoft Graph to create a subscription. For that, in the Entra ID for the same tenant, I went ahead and created an app registration. In this app registration, I have a client ID, I have a tenant ID. And also I went ahead and created a secret because I'm going to use client credential flow to be able to get an access token, okay? Under API permissions, I went ahead and granted this specific…

Contents