Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import pnp from "pnp";
pnp.sp.web.lists.getByTitle("testwebhook")
.subscriptions
.add("https://your-functions.azurewebsites.net/api/sample-webhook", "2017-12-01T00:00:00+00:00")
.then(r => console.log("Webhook added"))
.catch(r => console.log(r));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment