You need to sign in to do that
Don't have an account?
hegde_hegdek
how to get username from ownerid
Hello Friends,
how do i get the username from ownerid,do i query the user table with id matching with the
owner id
regards
hegdek
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hello Friends,
how do i get the username from ownerid,do i query the user table with id matching with the
owner id
regards
hegdek
You can do it that way or this way.
String userName = [select Owner.UserName from Sobject where Id = '{Some Id}'].Owner.UserName;