Hi there - I have two list item objects sourceItem and targetItem belongs to two task lists (Source and Target). Both have AssignedTo field of type Person or a group. When I am setting
targetItem["AssignedTo"] = sourceItem["AssignedTo"] ---Didn't work
Then I tried
SPFieldUserValueCollection users = (SPFieldUserValueCollection)sourceItem["AssignedTo"];
targetItem["AssignedTo"] = users;
Also, didn't work; The target item is showing blank in the AssignedTo field.
Please advise if I am doing anything wrong?
Regards,