You need to sign in to do that
Don't have an account?
AlecS
Assign Opportunity Owner to a different user
I have an Opportunity trigger. I want to assign the opportunity ownership to another person
I have tried:
opp.Owner.Name = 'Jack Smith';
and
opp.OwnerId = '00550000001ZszE'
None of these work.
How can I assign opportunity to another user?
Thanks!
Same thing is woking for me with OwnerId
is all you uneed in a before insert/update trigger. Note that you should never use hard coded ids in APEX code, rather, do one of the following: