I'm trying to get the Leads columns from the Account object.
This is the type of query I want to run, but it doesn't work:
SELECT Account.Name, (SELECT Name FROM Account.Leads) FROM Account If I describe the account object, the childRelationships of account has a lead but no relationshipName. Is there a way to perform this query and somehow use the ConvertedAccountId even though the relationshipName is missing?
{ "cascadeDelete": false, "childSObject": "Lead", "deprecatedAndHidden": false, "field": "ConvertedAccountId", "junctionIdListNames": [], "junctionReferenceTo": [], "relationshipName": null, "restrictedDelete": false } Doing this works with contacts
SELECT Account.Name, (SELECT Name FROM Account.Contacts) FROM Account { "cascadeDelete": true, "childSObject": "Contact", "deprecatedAndHidden": false, "field": "AccountId", "junctionIdListNames": [], "junctionReferenceTo": [], "relationshipName": "Contacts", "restrictedDelete": false }