+ Start a Discussion
SF7SF7 

Problem with clone button

Hi when i use standard clone button on Opportunity i have 2 options one is with products and the other is without products , so when i do it without products it still brings the amount filed when cloned so i thought to use a custom button for clone

 

/{!Opportunity.Id}/e?clone=1&retURL=%2F{!Opportunity.Id} 
&Opp4={! Opportunity.Account } 
&opp3={!Opportunity.Name} 
&Opp9={! Opportunity.CloseDate } 
&Opp11={! Opportunity.StageName} 
&00N30000007hHNe={!Opportunity.Parent_MPG_Id__c} 
&00N30000007h8tY={! Opportunity.Opportunity_Type__c } 
&CF00N30000004oFdw={! Opportunity.Local_Client__c } 
&00N30000004oAov={! Opportunity.Active_Latent__c } 
&00N30000004KRbS={! Opportunity.Solution_Type__c } 
&00N30000004Mwvq={! Opportunity.Opportunity_Short_Description__c } 
&00N30000006GDoh= 
&Opp7 = 
&00N30000004N7Qn= 
&00N30000004N7Qd= 
&00N30000004N7Qi=

 

and i was success in controlling all the fileds i left empty the fileds i do not want to get cloned and succeded but this **bleep** amount filed OPP7 is not working it is getting cloned if i have products on the Opportunites .

So can any one help me with this 

Best Answer chosen by Admin (Salesforce Developers) 
skodisanaskodisana

Hi,

 

This can be achieved by removing the standard Clone button from the page layout, and replacing it with a custom button that has the following syntax:

For "Clone without Products":
==================================
/{!Opportunity.Id}/e?clone=1&retURL=/{!Opportunity.Id}&&opp7=0

For "Clone with Products":
==================================
/{!Opportunity.Id}/e?clone=1&retURL=/{!Opportunity.Id}&cloneli=1

 

 

All Answers

sfdcfoxsfdcfox

It's not getting cloned, it's getting automatically summarized. The Amount field will be populated by the sum of all products on the opportunity, and the clone function on opportunities copies all the products... ergo, the amount field will automatically populate with the correct sum. Make sure you're cloning without products if you intend to leave the amount field blank.

SF7SF7

hey thanks for the reply,

 

i tried that the reason i have chosen to go for custom button in the first place was beacuse in the standard function when i use clone without products it is not leaving the amount filed , it is carrying the amount values in that Opportunity and cloning and now even in my custom button also it is doing the same.

skodisanaskodisana

Hi,

 

This can be achieved by removing the standard Clone button from the page layout, and replacing it with a custom button that has the following syntax:

For "Clone without Products":
==================================
/{!Opportunity.Id}/e?clone=1&retURL=/{!Opportunity.Id}&&opp7=0

For "Clone with Products":
==================================
/{!Opportunity.Id}/e?clone=1&retURL=/{!Opportunity.Id}&cloneli=1

 

 

This was selected as the best answer
SF7SF7

Dude thats awesome it worked ................cool and thank you very much.

SF7SF7

i have a issue with this

it works like a charm for system admins but for other profiles it still copies the Amount (OPP 7)

 

/{!Opportunity.Id}/e?clone=1&retURL=/{!Opportunity.Id}
&&opp7=0
&&00N30000006GDoh=
&&00N30000004N7Qn= 
&&00N30000004N7Qd= 
&&00N30000004N7Qi=