I have a task form that gets filled by some person.
I want to update the Sharepoint List with the person who approved or rejected it.
I'm not exactly sure how. How can I achieve this?
I'm using the following approach. I always define a unique task title in a variable for the tasks that I assign. After a task has been completed I use the "Set variable" action to get the person ("Modified by") who approved the task by matching the task name from the task list with my task title variable.
In case you are using the "Assign a Task" Action, you can use the person you've assigned the task before.
If you use the "Task Process" Action, because there are more than one person you is allowed to react on a specific item. Then I would create an workflow on the WorkflowTask list, which reacts on the Item Modified Event. If the Completion was 100%, you know that the task was completed.
Then you can go to the Related Items, to parse out the Item ID of the working item, and update the person by the "Modified By" column of the Task Item.
Hope it helps
I'm not sure if it's either of the way you two described, but it's just saved the Modified By into a variable and updated it onto the list.
The only question is, have you solved your problem? If
If yes, it would be nice if you mark one of the answers as a "Correct Answer"
This is how I do this in Nintex 365 WF...
1. Create Workflow Variable called FormApprover (or similar) as a String Variable
2. Add a Calculated Value to your form, set Formula to Current User (Display Name)
set Name also to FormApprover set Connected to to FormApprover
set Data Type to string.
set to recalculate on New and Edit modes only
finally... close the Calculated Value settings, and then hide it behind other controls on the form using Send to Back
3. In the Approval Workflow, use Update List Item actions (below the approval task) to update the item being approved (Target List: Current Item). Set the target column in the list item to the new Workflow Variable FormApprover - so the list item will now show, not who was assigned the task, rather who completed it.
Thinking on this again - if you have multiple approvers, and you just want the last name, my solution should still work - as the FormApprover workflow variable will always be refreshed every time the approval form is opened, and the list item will only be updated when the approval task has completed (i.e. the last approver has completed it).
Retrieving data ...