You need to sign in to do that
Don't have an account?
weraysdtjifrytg
Lookup to Pricebook
Hiii
Can anyone tell me if it is possible to create a lookup to a Pricebook list?
I need Products AND their related price to be filled in a custom object.
Thanks
Because a Product can have many different prices, you would have to specify from which Pricebook you want the Product's price returned, even if you have only one Pricebook.
Standard formula fields don't give you a way to specify a specific pricebook, so you would need to resort to Apex to handle that.
Hi Luke,
Thank you for your reply.
Unfortunately I only have Professional Edition, and I can't build triggers on that. All I can do is Visualforce pages and custom buttons.
Do you know if this would be something possible to do with let's say a custom button with on-click Java (something like create, query). I need to know if I should at all spend my time trying to figure that out...
Thanks.
Simona
Hi,
We have the same issue....
Please let us know how to resolve this
Hi,
For whitlam and emuelas, if you are able to do an Apex solution, this Quoting Application Example from the earlier versions of the Apex guide walks you through doing lookups to pricebooks. It does it from an Opportunity Line Item which has the built in advantage that it already has one Pricebook associated with each record (the PriceBookId field on Opportunity Line Items). If you were attempting to reference the Pricebook from a custom object, each record in your custom object would need to have a way to identify the particular pricebook(s) it will reference, perhaps by hardcoding a list of the known pricebooks (or, if you want to get fancy, by using Visualforce to query for pricebook IDs and building a list every time the edit page is accessed).
Thank you Luke....
Will have a go at this