2

What I'm referring to specifically is when anything about a list (or library) has changed, such as items added, removed, updated, list structure changed, etc.

What I was hoping for was some way to use the built in web services (or object model) to query for a "timestamp" that would indicate last time anything about the list was changed.

1

A very simple OOTB solution is to create an alert for this list and configure the alert to send you an alert if anything is changed with the list.

Please reference this helpful link that will outline the steps for creating and setting these alerts. http://office.microsoft.com/en-us/sharepoint-server-help/create-an-alert-or-subscribe-to-an-rss-feed-HA010378197.aspx

0

You can use the object model property splist.LastChangeToken

More about it...

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spchangetoken.aspx

2
  • This one looks promising. Does this log changes to the "settings" of a library or list as well? Like when a column is added or removed, or the versioning is enabled or disabled? In other words, anything about a list, not just the items within the list. – SoftwareGuy74 Jan 4 '14 at 16:59
  • Change token is for an item, list , web , site and ContentDatabase. – Erik Simonic Jan 4 '14 at 22:38
0

The usage of SPList LastItemModifiedDate and LastItemModifiedDate properties

public static void PrintListProperties(SPList list)
{
    Console.WriteLine(list.LastItemDeletedDate); // returns the date and time that an item, field, or property of the list was last deleted 
    Console.WriteLine(list.LastItemModifiedDate); //returns the date and time that an item, field, or property of the list was last modified
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.