+ Start a Discussion
Julia RodriguezJulia Rodriguez 

Opportunity Clone button in lightning

Hi There,

We are trying to make our custom clone button work in Lightning.
It voids out/ prefills certain values when our Finance team clones the opportunity.

Code used successfully in classic:
/{!Opportunity.Id}/e?clone=1&cloneli=1&retURL=%2F{!Opportunity.Id}&00N1r0000099WnC=&00Nw0000008ZV9D=&00N1r0000099Wms=&00Nw0000008ZV93=&00Nw0000008ZV98=&00N20000003bJHA=0.00&00N20000003bJH5=0.00&00Nw0000008TCpR=0.00&/00N20000003bJHF=0.00&00N20000003Iu7n=&00N1r0000099X0a=&00N1r0000099Wmx=&00N1r0000099X35=&00N20000000iMfb=&00Nw0000008knFZ=&00N1r00000KSLhc=&opp10=&Owner=Owner&opp14=&opp11=Account Review/Renewal&opp12=80&opp5=Renewal

Please advise. :-)
David Zhu 🔥David Zhu 🔥
Salesforce introducted URL hacking in Lightning in last release. 
You may following this url to create the lightning button.

https://www.salesforceben.com/salesforce-url-hacking-for-lightning-tutorial/
 
Julia RodriguezJulia Rodriguez
Hello David,
Thank you for guiding me to the resource.
However, I don't think "clone" is possible with URL hacking. Is this true?

Have not been able to get this to work...