I am creating a new list item using CSOM. When I try updating a Person field, I'm getting a error saying my function is undefined
Uncaught ReferenceError: createListItem is not defined
it happens with the introduction of this line:
SP.User _newUser = clientContext.Web.EnsureUser("domain\\user");
Isn't this part of Sp.js? I have this imported along with sp.core.