Questions tagged [pricebookentry]
Represents a product entry (an association between a Pricebook2 and Product2) in a price book.
How to find out relationships for SOQL queries?
I want to construct a SOQL query displaying all Opportunities that are sorted by the Products that are associated to it. I however have a problem finding out how Opportunities and Opportunity ...
Pricebook and PricebookEntries with different currencies
Can Pricebook and its PricebookEntries have different currencies? So, if I create a Pricebook with currency USD and its PricebookEntries with multiple currency like USD, GBP, AUD, etc., is this ...
Is there any hook/event when a product is archived?
I have a requirement to stop products with certain attributes from being archived in Salesforce. Is there anyway to hook into this event happening? Obviously I tried triggers, but a trigger ...
Pricebook entry currency code does not match opportunity currency code
I have a Visualforce page which create a product record, a priceBookEntry record and a opportunityLineItem record. I don't understand why in only one case, I get this error : In my code, I first ...