Setting Item column value to Approver Name from an Approval Task
-
17-01-2021 - |
Pregunta
I have a Library where each item uploaded creates an Approval Task. When this is approved i want the columns "Approved By" and "Approved Date" to be updated to the person who approved the task and the time they did so...
I have been trying to get this to work by using the below under the 'Set X To Y' action but this seems to return the completely wrong name!
**Field Data to Retrieve**
Data Source = Association: Task List
Field from Source = Modified By
Return Field As = Display Name
**Find List Item**
Field: ID
Value: Current Item:ID
A few help topics online refer to using [%CurrentTask:Modified%] however this is not a visible option when i try to use this.
Any help appreciated as I was trying to get users to start using this today :(
Solución
You can access the Task ID from the within the task behaviour. Click on "Change the behaviour of a single task":
The best place to set the field in the list / library would probably be in the "When a Task is Pending". You can add a "Set field in current item" action or if you wish to assign it to a workflow variable you can use the "Set Workflow Variable" action.
Then in the workflow use it like the following:
Links:
Find current task and reference field in associated task list of workflow
Capture task ID for approval task in SharePoint Designer 2010