Hi All,
Could anyone let me know the steps with example how can we capture approval comments in NIntex Forms List Column in case of Workflow Action - Start a task process.
Additional Task Process Configuration details:
Assignment Behaviour: Parallel (all at once)
Completion Criteria: Wait for first response
Thanks in advance.
Solved! Go to Solution.
In O365 there is no such functionality as "ApproverComments" - field that was by default in on-premise Nintex. So there is no like OOTB solution.
I recommend to alter Nintex Task content type and to make the "ApproverComments" field as visible.
Then, after the "task process" is completed, you can query the tasks list to get all items, where "Instance ID is equal {WorkflowContext:InstanceId}" so that you will get a collection of all tasks created by the current workflow. Then you just need to output "ApproverComments" field into a collection variable, foreach it and its done
Regards,
Tomasz
Tomasz, this is a requirement for myself, too. But without know what actions are being used here, it would be difficult to start. I'd be grateful for anything you could provide. (I'm quite a visual person. I've not done anything with arrays in Nintex, at all...yet).
Cheers.
Just to assist you with that - Nintex said they will add this functionality sometime in future, but... it's not on a critical path, neither planned within any specific timeline
So again (sorry, no visual, don;t have much time now):
And simply that's it. After the loop finishes you will receive a variable with all comments inside.
Regards,
Tomasz
Thank you very much. I will give it a try.
I gave it a try; could not get it to work. After adding logging actions all over the place, I see the issue is with the For Each and Build actions. But I am unsure how to fix that.
After the approval and query, I logged out the comments collection which showed both input comments had been pulled from the tasks list successfully. But Comments Holder logs shows that this text var did not get the comments value for any of the iterations of the for each, and subsequently the Comments variable used to pull them together was also empty.
I can't see what I'm doing wrong here.
Can you also post a screenshot of how the "Foreach" action is configured?
CommentsCollect is a collection workflow variable
CommentsHolder is a text variable
Not sure is needed but saw it used elsewhere (but it does not affect the result either way)
Many thanks!
sorry - not sure Index was needed but added it anyway
But for some reason it seems that what you return from "Comments Collection" is also a collection. Maybe try to output it not as a text, but as a collection and then get the "1st" element as the sub-collections have two items.