I’m currently working on a feature for an application where we want to sync files from a SharePoint Online document library to a storage account on Azure.
We’ve been looking at using SharePoint Online webhooks to do this, but today I stumbled on (what seems to me) the same functionality via MS Graph.
I’m wondering which path is the right one to take? The built-in ability to subscribe to changes in SharePoint Online or the subscription ability in MS graph.
Any insights would be appreciated.
You didn't flesh out your requirements so I'll have to make some assumptions:
The first thing you need to do is determine which of the approaches will handle each of these events and give you the data you need to take action. If one of them won't do it, then it's out of the running. If both can do it, then either will work. Both approaches are supported, but the Graph API will be receiving further development, but SharePoint WebHooks appears to be a dead-end technology. If you or your team feels more comfortable with one or the other, then that choice wins.
You have other options as well:
Answered by Derek Gusoff on December 1, 2020
Get help from others!