
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.
In Salesforce Classic, cloning a record and editing specific fields on the clone using a Custom Button is achieved by passing field IDs and new values in the button URL. In Salesforce Lightning Experience, this functionality is not available out of the box. A custom Lightning Web Component (LWC) or Aura Component is required to replicate this behavior.
There is no direct out-of-the-box functionality to clone a record and immediately edit it using a Custom Button or Quick Action in Lightning Experience. The following approach uses an Aura Component to achieve this via customization.
force:hasRecordId to obtain the record ID and create the business logic to clone the record and apply the necessary field value changes.For an example of making a component context-aware, review the Trailhead: Override Standard Actions module.
Note: Consider using Lightning Web Components (LWC) for new development as Aura Components are in maintenance mode.
Creating an Aura Component for Use as an Action Override
000384654