Forum Discussion
Can we create a remote event receiver to prevent users from deleting files but allow them to rename
Hi,
Remote Event Receivers can be considered as a legacy dev technique that is recommended not to use
- john johnAug 22, 2023Iron Contributor
Not sure if this is the case really.. as for any built-in SharePoint list or library it comes with many built-in remote event receivers... you can check them using Get-PnPEventRecevier command.
Second point, if remote event receivers should not be used as you mentioned, then what is the relevant replacement for it , to perform action related to itemadding, itemupdating and itemdeleting ??
Can you advice on the above 2 points?
Thanks
- Aug 22, 2023Hi
My comments:
(1) Of course, Microsoft as owner of SharePoint Online can have Remote Event Receivers there that at some point can be replaced, they have still farm solutions, features, etc.
(2) Replacements: Power Automate Flows, Webhooks, Azure Functions- john johnAug 22, 2023Iron Contributor
jcgonzalezmartinbut power automate flows, webhooks & azure function can not be used to cancel a file delete,, they run after the delete operation get completed... they can not run before the delete operation, as in the remote event receivers case.. did you get my exact issue now?