Hi all,
I have list in Sharepoint with new column "First line approvers". Type of this column is "Person or Group" and "Allow multiple selections" is set to "Yes".
How can I get and modify values of this column in runtime(from workflow) ?
Hi all,
I have list in Sharepoint with new column "First line approvers". Type of this column is "Person or Group" and "Allow multiple selections" is set to "Yes".
How can I get and modify values of this column in runtime(from workflow) ?
Assuming you've bound WorkflowProperties to the class..
SPFieldUserValueCollection f= new SPFieldUserValueCollection(WorkflowProperties.Web,WorkflowProperties.ListItem["First line approvers"] + "");
Then you can iterate over the collection / modify the collection and save your changes back by:
WorkflowProperties.ListItem["First line approvers"] = f.ToString(); //You might not need the to string here, I can't remember.