Salesforce API:从“父级”中选择“子级”字段具有特定值的字段

时间:2019-03-13 21:14:31

标签: sql salesforce soql salesforce-lightning jsforce

是否可以在子字段具有特定值的地方选择父值?

例如:

Select ContractName
From Contract
Where Contract.Orders.Status = 'Draft'

我得到了错误:

Didn't understand relationship 'Contracts' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. 

但是,即使我将__r添加到Orders中,我也会收到错误消息。

0 个答案:

没有答案