I've got an object
CustomTable__c which has a lookup relationship
Account__r to the Account object, and an External ID field
I'm trying to use the API to get the Account record, given the External ID of the custom record.
The URL is as follows:
This returns a 404.
If I remove
Account__r from the URL, then I get a 200 along with the custom record, so the custom record definitely exists, and is able to be retrieved using this field.
If I refer to the custom record by its Salesforce id instead, then the API returns the Account record that I'm asking for.
Is there something I'm doing wrong, or does this functionality of the API only work when using the Salesforce id, and not when using a custom id field?