We're using Nintex WF 2010 and user requires to show the last rejection comment based on last task.
I'm using Assign Flexi Task with All Must Agree option. I tried using the Approver Comments but showing unnecessary texts I just want to filter out the Approver/Rejector Name and his/her comment (I made comment required when rejection).
I'm seeing a lot of For Each samples, but is it possible using Regular Expression?
I saw Vadim's post, but I can't get to make it filter just the comment.
Any thoughts? Thanks
Solved! Go to Solution.
You could try querying the Workflow Tasks (or whichever list you're using for tasks for your workflow ) for the most recently modified task item related to the current item your workflow is running on, and retrieving the comments that way, e.g.:
This worked for me. I did put a 'commit pending changes' after the flexi task, as I was suspicious it might not complete properly before then querying for the last modified task. In theory the most recently modified task with the 'Workflow Item ID' column matching the ID of your current item *should* be the one that was just rejected, although if two users completed their tasks at the same time I'm not sure how reliable it would be so maybe do some testing to see But you can use this approach to retrieve info about the tasks via the tasks list directly.
In your flexi task you can also set the task to store the task IDs in a collection:
then you could iterate over those and query the tasks list for the additional info e.g. comments one by one as well.