I think I am getting confused with this so would welcome some advice
In my assign task I store the Task Item Id in a variable.
Is this the best way to retrieve comments (rejected) :
http://help.nintex.com/en-US/O365/Default.htm#O365WorkFlow/Getting to know NWO/Storing task form comments to variables.htm
I notice the comments could be formatted as a Json dictionary so does this needs special handling.
The reason I ask Is I keep getting exception that hang my workflow and impede myprogress
Alternatively do I "Insert a Reference" to capture current or all approver comments.
Solved! Go to Solution.
I did a query list Workflow Task in the end and used the GUID = ApproveTaskId . The comments appear to come back in a collectication var with a single entry.
I thought I followed you on this but it does not seem to be working. On the task, I set the task item ID to a text field (txt_LegalTaskID)
when updating the comment field in my list (LegalComment) I lookup from the Workflow Task list the Comments field where GUID = txt_LegalTaskID
Nothing is returned.
Try not using that sort of comparison, as I doubt it will work (GUID field holds different information than ID).
Instead try getting list of tasks generated by the action looking them up by InstanceId = WorkflowContext.InstanceId
I also struggled with the list lookup method you described in your first post. Turns out, the task field you want to store in a variable is called "Comments", not "Approver Comments".
However, when configuring the Set a variable action, you'll notice there is no "Comments" field in the drop down.
To get round this, publish the workflow, run it so it creates the task at least once and then open your workflow in the designer. You'll notice the "Comments" field now appears on that same action.
Comments are now available directly as an output, and can be entered via email: https://www.nintex.com/blog/whats-new-task-and-notification-improvements-for-nintex-for-office-365/