0

Let's say a have a code

User tempo = [select contact.name from user where id= :UserInfo.getUserId() limit 1 ][0];

how can I take contact.name value from tempo?

1
User tempo = [select contact.name from user where id= :UserInfo.getUserId() limit 1 ];

Please use tempo.contact.Name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.