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
RDN_LHRRDN_LHR 

Stopping Opportunity Product Deletes

Hi,

 

I have a situation where for a certain Opportunity Record Type, I would like to restrict the ability to delete products.  I can't find any way to do this through the UI.

 

Am I missing something?  If so, is there a APEX way around this?  Can you use an On Delete trigger for OpportunityLineItem that stops the delete?

 

Thanks

gpedronigpedroni

Did you find a solution? I'm looking for similar functionality.