+ Start a Discussion
KMK91KMK91 

Cloning Opportunity to exclude OLI

Hi Team,

How to exclude Opportunity line item when cloning the opportunity. The problem is when we are cloning the opportunity associated OLI and products are inactive here we are inserting the OLI along with prodcuts.
So we need exclude OLI while cloning the opportunity.

Thanks
KMK
VinayVinay (Salesforce Developers) 
Hi,

You can use below options on clone button.

User-added image

Else you need to build a custom button to clone opportunity.

Below link has a sample code snippet which needs modification as per your requirement.

http://sanancloud.blogspot.com/2017/05/custom-button-on-opportunity-to-clone.html

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar