How do I get data out from the "Collect data from user" task that a workflow creates? So far my attempts have been failures.
2 Answers
The right way to use the variable "collect" is to, when using the lookup window (like when you are trying to update or delete an item), you should point to the Tasks List (normally it appears like "Association: Tasks List"), and, in the "Find the List Item" section, you put on the first field the value "ID" and on the second the variable with the numeric value.
It should return the workflow task with the data collected from the user, along with the custom fields you may want to access.
SharePoint indeed gives this warning, but even if it finds multiple items, it returns only the first one found, so it's not exactly an error.
If I remember correctly, I created a workflow variable that gets a piece of information from the workflow task that is created. I repeat this for each item of data that was collected.
-
I need the steps for configuring it in the workflow, right now it creates the task, i complete the task, but the [Variable:collect] returns a numeric and not the information I actually need. Commented Jun 7, 2012 at 14:34
-
2That numeric value should be the list item id of the collect data task. You can use that to look up the task information and extract the information you need. Commented Jun 7, 2012 at 14:38
-
This doesnt work, the system is yelling at me about "This may return multiple items." And it doesnt set the data correctly. Commented Jun 19, 2012 at 15:22