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
Cloud_BKCloud_BK 

Referencing Price Book Entries in Custom Objects

I am attempting to populate the list price of a product on a custom object.  My first thought was to add a lookup field to "Product" on my custom object and then write a formula to reference the list price.  However, I can't see the price book entry or list price in any of the reference options.

 

In short, how do you reference the list price of a price book entry on a custom object?

 

Thanks,

 

Brian

Best Answer chosen by Admin (Salesforce Developers) 
Sonam_SFDCSonam_SFDC

Hi Brian,

 

This would be possible through coding because the intersection table called PriceBook entry table is only available through the API.

So you could write a trigger to put a value in the Price field everytime the custom object record  is created but it would not be a lookup just a static value. 

 

Hope this helps!

All Answers

Sonam_SFDCSonam_SFDC

Hi Brian,

 

This would be possible through coding because the intersection table called PriceBook entry table is only available through the API.

So you could write a trigger to put a value in the Price field everytime the custom object record  is created but it would not be a lookup just a static value. 

 

Hope this helps!

This was selected as the best answer
Cloud_BKCloud_BK

Sonam,

 

Thanks, I will procede with a trigger.