Hi everybody,
I want to get the last modified date/time of a SharePoint Site.My actual requirement is to fetch the Sites that are idle for 1 year.
I have already verified the web.LastItemModifiedDate property, but this time doesnot change when the metadata of the Site like Site title, Site description etc. changes.
I have also tried using the ChangeLog but the problem is that the log retention period to a value more than 1 year which would considerably increase the database size.
Although not recommended, I've just checked the "LastMetadataChange" field of the Webs table in content database. It gets updated when the Site metadata changes but it also sometimes gets updated automatically(may be, when a timer job runs/usage data gets recorded etc.) Hence, I'm unable to rely on that column.
It would be great, if you can provide a solution for this.