This is a case in Salesforce: There is a lookup relationship from Account to Individual, both standard objects. How to write a parent-to-child SOQL query where Individual is the parent and Account is the child?
When I try the code below:
SELECT Id, (SELECT Id FROM Accounts) FROM Individual
I get this error:
ERROR at Row:1:Column:28 Didn't understand relationship 'Accounts' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
Do you know how to fix this? Thanks