Showing posts with label People Picker. Show all posts
Showing posts with label People Picker. Show all posts

Wednesday, June 8, 2016

How to add a user and multi users to the People picker field in a sharepoint list programmtically

Coding:

  if (spProjectListItem["USER"] != null)
      projectMemberValue = spProjectListItem["USER"].ToString();
      SPFieldUserValueCollection oFieldUserValueCollection = new SPFieldUserValueCollection(spDLRWeb,
                                                                                                                    spProjectListItem["ProjectMember"].ToString());
       spListItem["USER"] = oFieldUserValueCollection;