You need to sign in to do that
Don't have an account?
Maria Alexandra Andrica
help to read relationship
I have the following relationshio between objects:
- Vehicle and Vehicle_location are in Master-Detail relationshiop
- Vehicle_location and Production_Location are in Look-up relationshiop
How can I link them in a soql query?
- Vehicle and Vehicle_location are in Master-Detail relationshiop
- Vehicle_location and Production_Location are in Look-up relationshiop
How can I link them in a soql query?
Mark solved if it does help you
Select Id, Name,(Select Id From Vehicle__r),(Select Id, Name From
^
ERROR at Row:1:Column:33
Didn't understand relationship 'Vehicle__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
Please populate the correct relationship name of your object, for custom object mostly it is : objectName__r
please use the below query
select name, vehicle_location__r.name, vehicle_location__r.vehicle__r.name
from
Production_location__c
by Falcon100 (if this was helpful, please provide feedback)