none
How to add people and groups from email id RRS feed

  • Question

  • Hi

    I have a column which has email id of user\s, 

    I would like to create another person and groups column and convert the email ids from the email id column to people and groups datatype data.

    is it possible? if not how about display name?

    Regards

    Roma 

    Tuesday, September 17, 2019 9:32 AM

All replies

  • So, you just want to copy all emails into people picker and convert it right? Which version of SharePoint are you using?

    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, September 17, 2019 10:00 AM
  • sharepoint online, 

    one is text filed which is populated with email id other field is people picker. I want all the text field which consists of email to be converted and added to people picker. 

    I have an asp.net application which populated the text field with email id. But the principle is not the same when it comes to people picker column. please see the code below.

    item["Full_x0020_Name"] = empname.Replace('.', ' ');
                            item["Emp_x0020_ID"] = summarydr.EMPLOYEEID.ToString();
                            item["Location"] = summarydr.Location.ToString();
                            item["Division"] = strDivision;
                            item["Department"] = summarydr.PROFESSION;
                            item["Professional_x0020_Title"] = summarydr.POSITION;
                            item["employment_x0020_status"] = true;
                            item["Revision"] = DateTime.Now.Year.ToString();
                            item["Years_x0020_of_x0020_Experience"] = summarydr.TOTALYRSEXP;
                            //item["Experience_x0020_Type"] = str.TrimEnd(',');
                            item["Experience_x0020_Type"] = strExptype;
                            item["CVBuilder"] = "Yes";
                            item["CV_x0020_Coordinator_x0020_Email"] = "Myname@host.com";
    
    
                            //this is the people or group column
                            //item["CV_x0020_Coordinator"] = "Userid";
                            item.Update();
                            uploadFile.CheckIn(string.Empty, CheckinType.OverwriteCheckIn);
                            Context.ExecuteQuery();

    This is only a sample not the whole code, just showing you the idea

    Tuesday, September 17, 2019 10:09 AM