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 ^
行:1:列:48 处的错误在查询调用的 FROM 部分中不理解关系“Assigned_To_r ”。如果您尝试使用自定义关系,请务必在自定义关系名称后附加“_r”。请参考您的 WSDL 或相应名称的描述调用。