
SELECT AccountId.RecordTypeId FROM AccountHistory LIMIT 10
Fails with: "Didn't understand relationship 'AccountId' in field path."
SELECT AccountId__r.RecordTypeId FROM AccountHistory LIMIT 10
Fails with: "Didn't understand relationship 'AccountId__r' in field path."
SELECT AccountId.RecordTypeId__r FROM AccountHistory LIMIT 10
Fails with: "Didn't understand relationship 'AccountId' in field path."
Ultimately I am using the query to get data via the python package Simple Salesforce. Alternative approaches are also welcome.4 respostas
Hi, Sorry my bad, please paste the below query format in the workbench and try.
Select Accountid,
Account.name,
Account.recordtypeId
From Accounthistory where
account.RecordtypeId!=‘012580000004SxCAAU'
Please refer to the similar link below
https://developer.salesforce.com/forums/?id=9060G000000BdqcQACHope this helps, please mark as solved if it doesThanks