+ Start a Discussion
Laura Babb 4Laura Babb 4 

custom clone button clears field values in classic but not lightning

I have a Clone button on a custom object that clears out the field values on the newly cloned record. This works in Classic, but not Lightning. How can I edit this so that it works in both UIs? It is a URL Detail Page Button:
/{!Campaign_Design_Profile__c.Id}/e?clone=1&retURL=/{!Campaign_Design_Profile__c.Id}&cancelURL=%2F{!Opportunity.Id}&00NU0000001OrEl=New&00NU0000000IO0x=&00NU0000001OkK6=&00NU0000000INTU=&00NU0000000HSDU=&00NU0000001OrrP=&00NU0000002K2ZB=&00NU0000002K2ZG=&00NU0000000IShd=&00NU0000000ITP2=&00NU0000000IS98=&00NU0000002H4iQ=&00NU0000002H4db=&00NU0000001Rkj2=&00NU0000002JixJ=&00NU0000000ITP7=&00NU0000000ITPC=&00NU0000000ITPH=&00NU0000000ITPM=&00NU0000001REzN=&00NU0000001PQ8a=&00NU0000000ITgF=&00NU0000000ITWt=&00NU0000001PQ81=&00NU0000001Q1CX=&00NU0000000ITb9=&00NU0000000ITb4=&00NU0000001PUqS=&00NU0000000HSNg=&00NU0000001OkJ3=&00NU0000001OkIt=&00NU0000000IMXP=&00NU0000001Oixz=&00NU0000000ITWJ=&00NU0000000ITR5=&00NU0000000ITgA=&00NU0000003MwSl=&00NU0000000INcK=&00NU0000000ITQV=&00NU0000000ITgK=&00NU0000000ITgL=&00NU0000000IN6w=&00NU0000001Oj5O=&00NU0000001OiaE=&00NU0000001OkIo=&00NU0000000IMZP=&00NU0000001OhL1=&00NU0000001PPs8=&00NU0000001QSbz=&00NU0000001Q1CX=&00NU0000001PQ81=&00NU0000001PQ8a=&00NU0000001Oru3=

 
Raj VakatiRaj Vakati
Lightning URL hack wnt work .. so you need to create a new quick action or button 
http://sfdcmonkey.com/2017/04/16/add-lightning-component-lightning-action/
Laura Babb 4Laura Babb 4
Thanks! So, I looked at the link you sent and I’m not sure how to construct this. Do I put the URL hack from Classic into a lightning component just as is or is the syntax different? Apologize for the newbie questions, I am an administrator just getting more into development by self-teaching and the community. All help is appreciated! Laura Babb | SalesForce System Analyst | Televerde 4636 E. University Dr., Phoenix, AZ USA 85034 Direct 480-771-6727 | Main 480-771-6700 Follow Us: LinkedIn | Twitter | Blog | Televerde.com [cid:image001.png@01D4B3C2.1D0A7940] [cid:image004.jpg@01D4E926.AAADC150]