0

Here is my code:

SELECT u.Contact.AccountId, u.Contact.Account.Owner.Name, u.Contact.Account.Owner.Email FROM User u WHERE u.id= :UserInfo.getUserId() LIMIT 1
  • create formuale fields. You can easily retrieve it – Annappa PH Feb 21 '19 at 10:42
  • Okay from Account Object? – Raja Feb 21 '19 at 10:44
  • yes you can create it – Annappa PH Feb 21 '19 at 10:45
  • why its here not fetching the value (Account.Owner.Name) what is the issue? have any idea for this – Raja Feb 21 '19 at 10:46
  • I have tried the same & i didnt get..i provided that solution to you – Annappa PH Feb 21 '19 at 10:47
0

Create a formula fields in Account level.

Here you need to create 2 formual fields one for owner Name & one for ownerEmail, Use that field for your query.It will work

| improve this answer | |
  • okay my question is why are not working here. have a any idea? – Raja Feb 21 '19 at 10:48
  • I dont have any idea. we will see other answers.. – Annappa PH Feb 21 '19 at 10:48
  • okay thanks Annappa – Raja Feb 21 '19 at 10:49

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.