You need to sign in to do that
Don't have an account?
minku1986
populate user in a lookup
I have to populate a user lookup field in an object through apex. What value of the user object do I need to assign it such that it gets the user in the lookup feel automatically?
I am assigning the OwnerId field. Is that correct?
tmatthiesen
If the field is a lookup to the User object - you simply need to set the value to the corresponding User.id.