I have an approval workflow on a document library which updates certain meta data fields in the library if the task is approved. When I look at version history for a document, the modified by is actually the person who uploaded the file not the person who approved the task. I understand the workflow is running under the Created by account but for audit purposes this does not look good. I've tried a few things but can't seem to get this to record as I would like.
We are on prem using Nintex Workflow 2013 v 220.127.116.11
Version History.jpg (screenshot)
Series24Approval06052017.nwf (workflow file)
modified by field is maintained by sharepoint, so you will not be able update with your own value.
I'd recommend to create a service account and run workflow with that account. that way document submitter will not appear as last modifier.
If you want the person who approved the task to be the name that shows as modifying the values, you could create a workflow on the task list that when a task is "approved" would kick off and go and update the values for the document related to that task. That way the initiator of the workflow would be the person approving the task.
some workflow actions have an option 'Run as a workflow owner' (eg. Action set)
so wrap up some or all the workflow actions by action set and set this option on.
then publish the workflow within service account credentials.