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
Bms270Bms270 

Triggers for "PricebookEntry"

Hi,

 

I need a trigger for when a "pricebookEntry" gets updated, being created or getting deleted. (on Insert, on update and on delete). I noticed "product2" triggers do not fire  on "pricebookEntry" changes. is there any way to handle this? 

 

 

Thanks

jpwagnerjpwagner
you cannot put a trigger on this object.  if you describe the scenario you need to handle, maybe there's another way...
Bms270Bms270

I need to fire an update script whenever a user changes a price for a product to update some other fields. in my specific case I run a webservice to synchronize the new price with some other external DB. I also need to have a way to fire my webservice script on Insert of a new pricebook Entry or deleting one. so you mean there is no way? how come? it seems so weird that we cant have any trigger on some SObjects but not on some others?

 

Please help.

 

Thanks

jpwagnerjpwagner

The "why's"  I'll leave to people internal to Salesforce.

 

For workarounds:

You could put a button or visualforce component in front of this action...

 

 

Bms270Bms270
Thanks for the reply, but this is stupid! I can even create triggers for custom objects but not for some native SObjects! totally unacceptable!