From the course: SharePoint Framework Essential Training
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
What are webhooks?
From the course: SharePoint Framework Essential Training
What are webhooks?
- [Instructor] Everything we've talked of so far is you calling into SharePoint or you surfacing something on the SharePoint UX. What if you wanted SharePoint to inform you that something interesting happened? That's where webhooks come in. So webhooks is a generic concept. It is not just a SharePoint concept. Webhooks are when your app needs to be informed of a change like a push request, like a notification, except designed for applications. How does it work? So the idea here is that SharePoint online exists and your application exists, and you expose an endpoint, and you want SharePoint to call you when something of interest to your application occurs. So remember so far we can call SharePoint using CSOM REST Graph. So in order for SharePoint to call you, you have to first create a subscription. This is a webhook subscription. Now you can create this subscription using CSOM or REST, but that relies on the add-in model app registration. So I'm not going to talk about that in this…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.