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,(Assigned_To__r から Name を選択) from Case where ^
行:1:列:48 のエラークエリ呼び出しの FROM 部分の関係 'Assigned_To_r' を理解できませんでした。カスタム関係を使用しようとしている場合は、必ずカスタム関係名の後に「_r」を追加してください。適切な名前については、WSDL または記述呼び出しを参照してください。