使用工作列对象时,SOQL到查询分配的资源字段
I am trying to achieve following:
Select WorkOrderNumber, (Select AssignedResource.ServiceResourceId from AssignedResource), Subject,Description,Status,Job_Request_SDO__c,Job_Location__c,Job_Type__c,Job_Category__c,Job_Number_Text__c,CaseId From WorkOrder
I need ServiceResourceId value from AssignedResource and rest of the query as它因此,最终结果将为我提供上面的一切。即使我直接使用分配的reserce.serviceresourceid并将__r附加到它时,查询也会丢弃错误。
有人可以在这种情况下提供帮助吗?我高于查询,如果我能获得ServicerEsourceid值,我会很好。我不想使用另一种方法并查询它。我应该使用包装班以上实现吗?
I am trying to achieve following:
Select WorkOrderNumber, (Select AssignedResource.ServiceResourceId from AssignedResource), Subject,Description,Status,Job_Request_SDO__c,Job_Location__c,Job_Type__c,Job_Category__c,Job_Number_Text__c,CaseId From WorkOrder
I need ServiceResourceId value from AssignedResource and rest of the query as it is so end results would provide me everything above. Even when i directly used AssignedResource.ServiceResourceId and also appending __r to it, query is throwing error.
Can someone kindly help on this case? I above query, if i can get ServiceResourceId value I am good. I do not want to use another method and query it. Should I use wrapper class to achieve above?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那应该做你要的
That should do what you're looking for