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
KMK91KMK91 

Cloning Opportunity

Hi Team,

How to stop cloning inactvie products when cloning the opportunity through customization.

Thanks
KMK
ANUTEJANUTEJ (Salesforce Developers) 
Hi KMK,

Although there could be multiple ways One of the possible ways I could think of is to have a trigger that could check if the products are active and only then insert a record.

I hope this helps.

Regards,
Anutej