您好我是Salesforce SOQL的新手。我正在尝试将解决方案与帐户相关联,但无法使其正常运行。我创建了一个查询但是从API调用并执行以下查询会返回一个' Case'对象
SELECT case.account.name
FROM case
WHERE id IN (
SELECT CaseId
FROM CaseSolution
WHERE SolutionId ='XXXXXXX'
)
答案 0 :(得分:0)
如何查询CaseSolution对象,然后查询案例中的帐户名称详细信息:
SELECT Case.Account.Name FROM CaseSolution WHERE SolutionId = 'XXXXXX' GROUP BY Case.Account.Name