function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ritu Ghosh 13Ritu Ghosh 13 

From where do we get Discount,Sales Price ,sub total information in case of opportunity Product fields when I want to write SOQL query associated with opportunity

Can someone let me know from where do we get Discount,Sales Price ,sub total information  in case of opportunity Product fields when I want to write SOQL query associated with opportunity . I am not able to  get  them in below objects:
product 2
PriceBook2
PriceBookEntry
OpportunityLineItem

 
Pradeep SinghPradeep Singh
Hi Ritu, These fields are linked to QuoteLineItem Object. This will only be shown when you activate Quotes in your Org.
If you want to enable Quotes, go to setup, search for quotes setting and enable it.

If this helps, please mark it as best answer.