dimanche 1 mars 2015

Starting an Approval Workflow on a list sets the Modified By to the creator of the workflow



I have a SharePoint 2010 Approval Workflow running on a series of SharePoint 2013 lists and libraries. The libraries that have the workflow applied are not having any issues, this issue only applies to lists. Also, the workflow is set to run only when the user kicks it off manually. The workflow does not run by itself when an item is created or changed.



Here's what happens:
- User creates or changes an item
- User selects the item and clicks the Workflows button in the ribbon
- User clicks the approval workflow and clicks Start to initiate the workflow
- Modified By column on the list item changes to the creator of the workflow
- The approval runs its course and at some point gets approved or rejected
- Modified By column on the list item continues to be set to the user who created the workflow


If someone is savvy enough to look at the Version History of the item, then it's possible to see the audit trail and determine who edited the item originally before the workflow was kicked off. The problem is, users are not savvy enough to do this and is not acceptable as a "training" item. The users should be able to tell who Modified the item by looking at the Modified By column.


Any suggestions on how to resolve this? I'm open to modifying the approval workflow, but does the workflow have the context of the user who originally edited the item? The only solutions I've seen around this are creating event receivers on the ItemUpdating event. This is an absolute last resort, and likely not even an option.








0 commentaires:

Enregistrer un commentaire