MOSS 2007 - Workflow Approval Sets Modified By to “System Account” Part 2

less than 1 minute read

In my previous post on workflow approval "MOSS 2007 - Workflow Approval Sets Modified By to "System Account"" I talked about the problem of how versions are created and updated by SharePoint as part of a custom workflow, causing the Modified By property of the page/item to be set to the system account rather than the account of the last person who actually worked on the page/item. That post shows an attempt at a solution that does not work, where I was still trying to understand how to use a SharePoint list event handler.

I was able to get the event handler working, but with a drawback: When an item is approved, the event handler sets the Modified By property of the page/item, but then it also creates a new draft version of the item in the version history. This could be confusing for users, but in my situation it's an acceptable solution. Below you'll find the entire project, zipped up using 7-zip format.



To install the event handler, follow the directions listed in the previous post "MOSS 2007 - Workflow Approval Sets Modified By to "System Account"", but use the Feature.xml, Elements.xml and UpdateTaskColumns.dll from building the project.