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
Kumar GKumar G 

how to stop adding duplicate opportunityproduct records to the opportunity in standard salesforce functionality(Product & Pricebook)

We are using standard salesforce functionality for adding products to opportunity , after adding products to the opportunity if user is adding one more product which is already there in products , system is allowing to created duplicate record.

I have a wriiten a workflow to restict duplacates it's working fine for duplicates but while cloning with products it's causing validation errors.please find the below screenshorts for better idea and suggest me with any other approach to resolve this issue.


User-added image
User-added image
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Kumar,

May I suggest you please refer the below link for reference with similar kind of issues. Hope it helps.

Thanks
Rahul Kumar