Forum Discussion
Get-SPOSite / LastContentModifiedDate - Details
- DeletedJul 03, 2017
I opened a Microsoft support ticket last year because I wanted to know what triggered the date modified to change (ticket # 116063014358281). We have several custom code solutions that upload documents/reports weekly or daily, and those sites weren't always showing as being modified.
Turns out that our code wasn't triggering the modified date to change because we weren't populating the user agent string on our request.
This is actually the way we'd want it so our code doesn't make stale sites look active.
Hope this helps.
Hello Stefan,
This shows the date and time in UTC format (probably the reason why it shows midnight for you) when the content of the site was last changed. So any site activity that makes a change in the content database add to this.
Ref: https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.lastcontentmodifieddate.aspx
Hope this helps!
- StefanFriedJun 16, 2017Iron Contributor
thank you annesh
well i know that this property gets changed whenever a user modifies something in the site.
but what i dont understand is, why i see a timestamp in the middle of the night where i know for sure (because it is a test site) that nothing has been changed by anyone
so i believe that certain processes in the background are influecing this property which makes it almost useless to detect last user modifications....right ?
opinions welcome
- mbaybarskApr 27, 2021Copper Contributor
StefanFried
Have you found a solution for this? I've been meaning to use this as a way to monitor onedrive personal backups but I come across the same issue where some background processes are intervening. - DeletedJul 03, 2017
I opened a Microsoft support ticket last year because I wanted to know what triggered the date modified to change (ticket # 116063014358281). We have several custom code solutions that upload documents/reports weekly or daily, and those sites weren't always showing as being modified.
Turns out that our code wasn't triggering the modified date to change because we weren't populating the user agent string on our request.
This is actually the way we'd want it so our code doesn't make stale sites look active.
Hope this helps.