Skip to main content
I have been following various articles to hack the URL to clone records. The hack seems to be working but not fulfilling my requirement to set record type Id. The url that I tried is as below

 

/{!Opportunity.Id}/e?clone=1&recordTypeId=0121N000001fvOqQAI

 

Does anyone know how to set the record type while cloning?
6 answers
  1. May 7, 2021, 8:27 AM
    Hello Keiji,

     

    That blog surely helped in clarifying on the defaultFieldValues not working in edit, but I was looking more on setting the recordtype during clone. I think I have finally figured it out. Pasting the URL format below in case someone is looking for the same. This is a custom button (Detail page), with the type URL - Did not try with a link/list button.

     

    /lightning/r/Opportunity/{!Opportunity.Id}/clone?recordTypeId={Insert Record Type Id here without the braces}&count=1
Loading
0/9000