【发布时间】:2011-11-11 02:52:59
【问题描述】:
I am trying to query the relationship "Assigned_To__r" within the "Case" object, so I can return the Name of the User that is currently assigned to the case.I have tried many different syntaxes, and read many different web pages on this, but can't seem to figure it out. Here is my current syntax that isn't working, but as I said, I've tried many different combinations
Please help.
`select Id,CaseNumber,Subject,(select Name from Assigned_To__r)
from Case
where Closure_Code__c <> 'Invalid Support Case'
and Closure_Code__c <> 'Duplicate Case'
and Closure_Code__c <> 'Spam''
这是我得到的错误:
INVALID_TYPE: CaseNumber,Subject,(select Name from Assigned_To__r) from Case where ^
在 Row:1:Column:48 出现错误 不了解关系 查询调用的 FROM 部分中的“Assigned_To_r”。如果您试图 使用自定义关系,请务必在 自定义关系名称。请参考您的 WSDL 或描述 呼唤合适的名字。
【问题讨论】:
标签: soql