+ Start a Discussion
Siddharth LakhotiaSiddharth Lakhotia 

Primary Key on Pricebook enteries?


I have created 4 fields on price book enteries.

Product Material No.
Sales Unit Of Measure

I require a combination of these 4 fields to be the primary key(5th field) for my product. Such that , that primary key be the determinant for the price of my product.

If any of the 4 fields differ in value from the previously existing combination , It will set a new price for a product.

I understand , there is no apex trigger or workflow rule on pricebook. How do i achieve this functionality?

Refer this blog for workarond for trigger/workflow on pricebook : https://sfdcfanboy.com/2017/08/27/a-tip-a-day-11-workaround-for-pricebookentry-triggerworkflow/
Siddharth LakhotiaSiddharth Lakhotia
Hi Eldon,

Can you explain in detail. corresponding to my requirement. I am sorry , i am not that great a coder. 

How do i make a primary key out of these 4 fields