In this small post we will see how we can add user to a user column using JSOM. Assuming that the user entered is a valid user
We have created a new javaScript array variable called oUser
To this array we are pushing user information with the help of javascript function called SP.FieldUserValue.fromUser
To fromUser method, we are passing the valid email and we are setting this oUser object array to the list item
We have created a new javaScript array variable called oUser
To this array we are pushing user information with the help of javascript function called SP.FieldUserValue.fromUser
To fromUser method, we are passing the valid email and we are setting this oUser object array to the list item
No comments:
Post a Comment