When a document is deleted or published in a document library
-
20-02-2021 - |
質問
I have a requirement to develop a solution based on SPFx, namely, when a document is deleted from a document library or a document is published (got main version) in a document library in SharePoint online, do something? How can I get "notification" or "getChanges" or other opportunity to handle and solve the problem?
解決
You can't do that in SPFX. You'll have to use a web hook or a remote event receiver.
https://docs.microsoft.com/en-us/sharepoint/dev/apis/webhooks/overview-sharepoint-webhooks
他のヒント
You could not achieve this with SPFx, I would suggest you create a remote event receiver in SharePoint Add-ins to acheve this:
所属していません sharepoint.stackexchange