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
SFineSFine 

Custom Clone Button for Opportunity and Opp Line Items

Hello,

 

I'm researching how to make a unique clone button that clones a opportunity but also clones the line items as well. I have looked at a similar thread, but none of the solutions helped.

 

What I have so far is like so:

 

{!UrlFor($Action.Opportunity.Clone,Opportunity.Id,
[
retURL = $Request.retURL,
cloneli=1]
,true)}

 

Any advice how to make it so the line items carry over as well?

Nick34536345Nick34536345

For me, when there are some products in the opp, the standard clone button shows a choice between "Clone with Products" or "Clone without Products". Do you get that?