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
Julia ZocoloJulia Zocolo 

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 ZocoloJulia Zocolo
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...