Copying child relationships from an existing record that acts as a template can save users a lot of time. A custom button can show the native record creation page, and then prompt the user to copy child records from an existing record when the new record is saved. For example, this could be used when creating a new opportunity, and after the opportunity is saved a page displays child relationship records to add(copy) onto that new opportunity.
The native record creation page uses a URL parameter of ‘saveURL’ to redirect to a new page after record creation. This can be set with a URL encoded string that specifies the Super Clone or Super Clone Pro Copy page. In that URL encoded string, set the ‘rid’ URL parameter to equal ‘newid’. Salesforce appends the ‘newid’ URL parameter after the save operation.
Super Clone Example:
1 2 3 |
/006/e?retURL=%2F001%2Fo&saveURL=%2Fapex%2Fdh_superclone__superclonecopy%3Ffromid%3D{!Opportunity.Id}%26cfg%3DMyConfig%26rid%3Dnewid |
Super Clone Pro Example:
1 2 3 |
/006/e?retURL=%2F001%2Fo&saveURL=%2Fapex%2Flcrm-scp__scpcopy%3Ffromid%3D{!Opportunity.Id}%26cfg%3DMyConfig%26rid%3Dnewid |
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.