Questions tagged [pricebookentry]

Represents a product entry (an association between a Pricebook2 and Product2) in a price book.

Filter by
Sorted by
Tagged with
4 votes
3 answers
10k views

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 ...
mcbetz's user avatar
  • 927
1 vote
2 answers
5k views

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 ...
Nilang Pandey's user avatar
5 votes
1 answer
247 views

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 ...
Simon Lawrence's user avatar
1 vote
2 answers
8k views

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 ...
Oupat's user avatar
  • 703