You need to sign in to do that
Don't have an account?
Dariusz Rutkowski 6
The left operand cannot have more than one level of relationships
Hi
Similar questions are raised in many threats but the solutions proposed do not fit my case. I have got a simple SOQL:
Select WorkOrder.Id from TimeSheetEntry where WorkOrder.Id in (Select Id from WorkOrder Where...)
The error is The left operand 'WorkOrder.Id' cannot have more than one level of relationships.
If I provide hardcoded Orders it works, so the relationship exists and is referred to properly as I understand. How to use the subquery?
Similar questions are raised in many threats but the solutions proposed do not fit my case. I have got a simple SOQL:
Select WorkOrder.Id from TimeSheetEntry where WorkOrder.Id in (Select Id from WorkOrder Where...)
The error is The left operand 'WorkOrder.Id' cannot have more than one level of relationships.
If I provide hardcoded Orders it works, so the relationship exists and is referred to properly as I understand. How to use the subquery?
Requesting you to go through this discussion once which might help you with your problem :
https://salesforce.stackexchange.com/questions/284442/the-left-operand-cannot-have-more-than-one-level-of-relationships
If this helps , please mark this as Best Answer.
Thank you.
So the query should be:
Select WorkOrder.Id from TimeSheetEntry where WorkOrderId in (Select Id from WorkOrder Where...)