Timeline for Get SOQL Query to get Account's Name Instead of the Id?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 9, 2019 at 3:02 | vote | accept | Naofumi Kun | ||
Dec 9, 2019 at 2:55 | answer | added | David Reed | timeline score: 1 | |
Dec 9, 2019 at 2:51 | comment | added | Naofumi Kun |
@DavidReed I got it now, I'm using {!item.Id} in my component instead of {!item.Account.Name} please post your answer so I can mark it as best answer. Cheers!
|
|
Dec 9, 2019 at 2:43 | comment | added | Naofumi Kun | Thanks for the info, I'll look at my component. Now I know that the query is not the source of the problem | |
Dec 9, 2019 at 2:40 | comment | added | David Reed |
003 is the key prefix for Contact, not Account. There is something completely different wrong in your Lightning component code.
|
|
Dec 9, 2019 at 2:39 | comment | added | Naofumi Kun | Thank you both for the response I updated my post to add more context. | |
Dec 9, 2019 at 2:38 | comment | added | David Reed | Please show us the actual code that is being used to display the data. | |
Dec 9, 2019 at 2:37 | history | edited | Naofumi Kun | CC BY-SA 4.0 |
added 286 characters in body
|
Dec 9, 2019 at 2:32 | comment | added | Kasper | Is this part of a test class? One explanation for this result would be that you have inserted a test account without a name, Salesforce will then automatically fill the field with the account id, and that may be how you now get this result. | |
Dec 9, 2019 at 2:28 | history | asked | Naofumi Kun | CC BY-SA 4.0 |