You need to sign in to do that
Don't have an account?
aj4
History tracking for Account Owner
Hi!
I want to track the account owner name by using following trigger .
if (Trigger.isUpdate) {
for (Account a : Trigger.new) {
String ownerName = a.Owner.Name;
}
}
ownerName returns null ,
How to get New and Old Owner Name value?
Thanks
You should be able to do this in one query (something like the below).
select firstname, lastname from user where id in (owneridnew, owneridold)