You need to sign in to do that
Don't have an account?

SOQL between User and WorkOrder Standard Objects
I am trying to display the Some fields from WorkOrder and some fields from User objects. Kindly help me how to write the SOQL query on this objects. I have tried with below query.
Select id, Name , ( Select WorkOrderNumber from WorkOrder) from User.
It is throwing the error. Kindly help me on this issue.
Thanks in Advance.
Select id, Name , ( Select WorkOrderNumber from WorkOrder) from User.
It is throwing the error. Kindly help me on this issue.
Thanks in Advance.
Do you have any direct relationship between WorkOrder and User record apart from standard Ower field??
No, I don't have any direct relationship between WorkOrder and User. I have only Owner field on WorkOrder.
In that case you can not use reltionship query because the reaplationship between your workorder and user is special kind of.
Here is relation between any object to their owner field :
in second image, we are not having Child Relationship Name field and this causes problem when we try to perform SOQL.
Workaround :
Now we have map in which, each user Id is mapped with there list of workOrder record.