8
votes

Is there a way we can identify in the item updated event that the document(File) associated with the item is updated or not?

Thanks, Mallikarjun

1
I am not sure it is completly clear what you want. I guess you have a class inheriting from SPItemEventReceiver and have overwritte it's ItemUpdated method. And you wan't to find out whether the file itself has been overwritten?Markus Safar

1 Answers

1
votes

how about comparing Created Date and Updated Date fields if same or not?

or you can compare with last version;

SPListItemVersionCollection oVersionInfo = oListItem.Versions;