Skip to content

garrytrinder/spo-webhook-logicapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharePoint Online Webhook Logic App

This repository contains a sample Logic App that can used as a SharePoint Webhook, it was demonstrated at Scottish Summit 2020 in the session, Modernise and scale your SharePoint events with Webhooks.

Pre-requisities

Deployment

  • Login to Azure CLI, az login
  • Login to Office 365 CLI, o365 login
  • Create copy of deploy.template.json
  • Rename copy to deploy.json
  • Update placeholder values in deploy.json
  • Execute deploy.ps1

Deployment script

Post Deployment

  • Create SharePoint site
  • Create a Custom List
  • Execute ./scripts/get-logicappurl.ps1 -resourcegroupname resource -logicappname logicappname
  • Take a note of the URL this is the notificationurl for the next script
  • Execute ./scripts/add-webhook.ps1 -weburl https://contoso.sharepoint.com/sites/webhook -clientstate webhook -notificationurl "https://logicappurl" -listtitle Webhook

Congratulations! You have succesfully registered a webhook against a SharePoint list.

Now go create some events 🚀🎉

Releases

No releases published

Packages

No packages published