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

Creating a SPD 2010 workflow. Trying to do something that I think should be simple.

Use a “Collect Data From a User” activity to collect 0 to many “people” that should be affiliated with a piece of content (Discussion).

After the assigned user completes the task, and after ensuring that there have actually been people associated from the task, I want to take the “people” from the Task list item and move them over to a field on the core Discussion item, that is also setup as a Person/Group field (allowing multiple).

I have tried using both the “Set Field in Current Item” and “Update List Item” activities to map the data over and in both cases tried using every combination of “Return field as” values to do the mapping (i.e. ‘String’, ‘Display Names, Semicolon Delimited’, ‘User Ids, Semicolon Delimited’, etc). In some cases I get vague errors about not being able to do mapping (I get it), in others, it sets the data, but only to the first user entered in the Task’s instance of the field.

After researching a bit, I find that the custom task from which I am pulling the data only contains one value, eventhough when I submitted the InfoPath form for the task, it accepted my data entry of two different users. So I think somewhere between the data entry into the custom tasks infopath form, and the update of the same data field in the Task list, the value is being lost.

I am sure this would be trivial with a custom activity, but we are exploring OOB ways of doing things and I have to imagine this is possible.

Am I missing something here? This seems “buggy”…

I am able to repro this in two different environments, using an out-of-box Discussion Board on an out-of-box Team Site.

TIA!

share|improve this question
    
Did you ever find an answer for this? –  user7225 Mar 5 '12 at 22:41
    
Following up with Microsoft support services to see what the status of the KB is. Will post here when I find out more. I did get word that another issue will have a KB article released in the April 2012 CU timeframe. –  Brian Mar 6 '12 at 17:45

2 Answers 2

Solution found!!

In case you want to update a MultiUser column in SPD 2010 you need to create a workflow variable of type String and set it to the following value:

[%List:User1%];#[%List:User1%];#[%List:User2%];#[%List:User2%]

The duplicate of users is not by mistake. The first one should be selected as [User Id Number] value and the second one as [Display Name]. This will result in pairs for each user to be inserted to the variable: [User1 Id];#[User1 display name];#[User2 Id];#[User2 display name] etc. And the separator of [;#] is not by mistake too.

In the end you'll come up with something like:

[%Current Item:Modified By%];#[%Current Item:Modified By%];#[%Current Item:Created By%];#[%Current Item:Created By%].

Afterwards use this variable as a value for the MultiUser field as [String], NOT as [User Ids, Semicolon delimited]. Otherwise it issues the

[Coercion Failed: Unable to transform the input lookup data into the requested type.]

exception.

Well, a couple of hours of fighting but it works!!

Good luck!

share|improve this answer

After opening a Support Ticket on this issue with Microsoft Support Services, I have received word that this is a known bug with SP 2010 & SPD2010. They are working to get a KB article published on it with some workarounds.

share|improve this answer

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.