Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How do I get data out from the "Collect data from user" task that a workflow creates? So far my attempts have been failures.

share|improve this question
add comment

2 Answers 2

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.

share|improve this answer
add comment

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.

share|improve this answer
    
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. –  Thomas W. Jun 7 '12 at 14:34
2  
That 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. –  PirateEric Jun 7 '12 at 14:38
    
Yep, exactly what PirateEric said. Thanks. –  Steve Lineberry Jun 7 '12 at 14:39
    
This doesnt work, the system is yelling at me about "This may return multiple items." And it doesnt set the data correctly. –  Thomas W. Jun 19 '12 at 15:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.