Sharepoint: How to get value of the column?
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 an开发者_如何学Cd 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.
精彩评论