/{!Opportunity.Id}/e?clone=1&recordTypeId=0121N000001fvOqQAI
Does anyone know how to set the record type while cloning?
6 answers
Hello Keiji,
/{!Opportunity.Id}/e?clone=1&recordTypeId=0121N000001fvOqQAI
Does anyone know how to set the record type while cloning?
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