I am building a site in SharePoint 2010 and I would like to have a webpart that will track and log who and when updates are being made to a specific document. The webpart will be featured on the homepage of the site so my team can track who has udpated the document. I am unable to find the right webpart or settings to do this. The content query which I have seen recommended multiple times does not appear to be an option for a web part for me. Any recommendations as to how to set this up?
I solved for this exact problem with a custom workflow which posts to a custom list.
- Columns for Created By (person/group), Activity (Text), Hyperlink (URL), Created (date/time)
- Triggers whenever someone updates a document in the specified library (if you needed, you could use conditional blocks to isolate desired files)
- Runs a Create List Item action to post back to my custom list. It sets activity to say "I updated a file: [%Current Item:Name%]" and the hyperlink to Current Item:Encoded Absolute URL.
- Depending on how your environment handles content publishing/approval, you may also need to add a binary flag to the document itself which prevents it from double-posting on initial upload (the check in/approval is sometimes treated as a second update). Test without this, but if you're getting a double post create a "new file" yes/no field on the library which defaults to 0, and set a condition in the workflow that if the value is 0, instead of posting update it to 1.
The Output: You have a list / web part which displays the user who updated the file (most of my teams prefer it with pictures), the name of the file, and the date (or date/time) of the update.
Hope this helps!