I'm working on an application in which it should be possible to link an account to a pricebook. Because for different accounts, different prices may be appropriate. Is there a way to directly link an account to a pricebook?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
An opportunity is related to a PriceBook via the PriceBook2Id lookup. An Opportunity is tied to an an Account.
You could create a text field on Account, PriceBookId__c and stamp the id of the PriceBook permitted. Then have a validation rule on Opportunity which only permits a PriceBook whose Id matches the value stamped on the Account.