I need a query between Opportunity
and OpportunityLineItem
.
OpportunityLineItem
has a lookup for Opportunity. Child relationship name is OpportunityLineItems
. Opportunity Lookup field is called OpportunityId
.
I'm trying the below query but it doesn't work.
select Id,Name,OpportunityId__r.Description from OpportunityLineItem
Also tried:
select Id,Name,OpportunityLineItems__r.Description from OpportunityLineItem