You need to sign in to do that
Don't have an account?
Austin Gutz
Query for Opportunity Product Line items
I have found some posts about how to query for line item values but I can't seem to find out how to format the query based on line item values.
Example:
SELECT Name, (Select PricebookEntry.Product2Id,Certainty_Percentage__c, TotalPrice, From OpportunityLineItems)
From Opportunity
WHERE
Certainty_Percentage__c = '90%'
The problem is I want the certain percentage value on the line item, not the opportunity itself. I tried just doing "From OpportunityLineItems" but I get an error every time.
Example:
SELECT Name, (Select PricebookEntry.Product2Id,Certainty_Percentage__c, TotalPrice, From OpportunityLineItems)
From Opportunity
WHERE
Certainty_Percentage__c = '90%'
The problem is I want the certain percentage value on the line item, not the opportunity itself. I tried just doing "From OpportunityLineItems" but I get an error every time.
Something like these won't work?
Hope it helps!
The error I was getting was:
"FROM OpportunityLineItems
^
ERROR at Row:3:Column:6
sObject type 'OpportunityLineItems' is not supported."
This would throw an error: This would not: