To store who has completed a task, when and store the comments, I run 2 loops:
- one on the tasks with same workflow instance ID
- one on the tasks responses
With the 1st loop, I get almost everything: the task ID, the assignee, the outcome, who has completed and when. Unfortunately, I cannot get the field values from the form (above all, a comment field) and the express approval comment.
That’s why I run the 2nd loop. With this loop, I get the field values from the form. I use the form URL to calculate the task ID and I complete my history log table because I have this task ID.
I’ve discovered that the form URL becomes empty when the assignee completes the task by express approval. How can I get the task ID to store the express approval comment on the right place in my history log?
Can someone help? Thanks.