SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to update a UserField client side. I found the following code at this topic How to Use ECMA CSOM to Set a Field of Type SPFieldUserValue

Tried the following code:

var users = new Array();


item.set_item(columnName, users);


I'm getting the following error:

"Invalid look-up value. A look-up field contains invalid data. Please check the value and try again."

It's not working if I want to add an array of users to a field. It only works for one user ex:

item.set_item(columnName, SP.FieldUserValue.fromUser("testAias1"));

Any ideas why?

share|improve this question

Ok so i finally figuered it out. This is what worked for me:

var users = User1_ID + ';#' + User1_Name + ';#' + User2_ID + ';#' + User2_Name;

listItem.set_item(fieldName, users); listItem.update();

share|improve this answer
Hi, I have used client side people picker, and I have same problem as you have, how do I get User_id and User_name from a people picker Entity? thank you for your help. – Medes Mar 8 '13 at 15:35

get all fields and just split with the help of JQuery

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.