0

I'm trying to implement a remote event receiver for SharePoint Online. This RER should be used to intercept the override action of a document in a document library and avoid that possible metadata already in the document that i'm uploadnig are updated in the document library.

Right now the RER is the only way i've found that can help me in this situation. The idea was to listen to the event "ItemUpdated" and replace the new properties with the old ones if they are changed.

The problem is that there is no specific event for an override of a file. The only event that is triggered is the "ItemUpdated", that is triggered both when a file is overridden but also when manually someone change the metadata in the file directly in SharePoint.

I've found no way to understand if the ItemUpdated event has been triggered from the override or just a manual update. I need to block the change of the properties ONLY if I'm overriding the file.

Any possible help or idea?

Thanks

I need to understand if the event is triggered from a file overriding or just a metadata change.

0 Answers0