July 5, 2020

How To: Select Record when Copying to a Different Record Type

The copy page is typically used to copy related lists from one parent record to another record of the same object type. It also can copy related lists to another object type when the child object has lookup relationships to both from and to object types. The built in prompt field expect the same object type, so a little custom code is needed to prompt for the other object type. […]
September 1, 2020

Submit a Queueable to Clone Records

Below is an example that will submit a Queueable job to clone using Super Clone Pro. Visualforce <apex:page standardController="Account" extensions="accountCloneController" lightningStylesheets="true"> <h1> Clone: {!account.Name} </h1> <apex:form> <apex:commandButton action="{!cancel}" value="Cancel" immediate="true"/> <apex:commandButton action="{!saveClone}" value="Save Clone and Return" immediate="true"/> </apex:form> </apex:page> Controller extension public class accountCloneController { Account sObj; public accountCloneController(ApexPages.StandardController con) { sObj = (Account) con.getRecord(); } public pageReference saveClone() { if (sObj != null && sObj.Id != null) { System.enqueueJob(new […]
November 12, 2020

How to: make the Super Clone Pro Edit Page redirect back to itself after save

Create a Visualforce page and Apex page controller to help the redirection logic. My example Visualforce page is named ScpEditRedirect, and the Apex controller is named ScpEditRedirectController. Finally, create a custom button that references this new custom page with the Super Clone Pro url parameters. Apex Controller: ScpEditRedirectController Visualforce Page: ScpEditRedirect <apex:page cache="false" controller="ScpEditRedirectController" action="{!redirect}"> <apex:form > <apex:commandButton action="{!redirect}" value="Load Edit Page" /> </apex:form> </apex:page> Custom Button
April 22, 2021

How To: Redirect to the Lightning Edit Modal After Saving

This is an example of the custom button url that would be used to redirect a user to the Lightning Edit Modal. We also need to include the backgroundContext URL parameter, so the record page is loaded underneath the window. Here is an example that references a Case object. The beginning of the URL is standard up to the saveURL2 parameter. The saveURL2 parameter is an encoded URL that contains […]
October 14, 2021

How To: Load the Super Clone Pro Clone or Copy Page with Child Records Unchecked

The Clone and Copy page components can be embedded in a wrapper Visualforce page. This allows you to apply styles and use JavaScript to manipulate the page. This example shows how to uncheck all the child selection checkboxes on the page load. Finally, update the custom button to reference this new Visualforce page. Replace the name of the packaged page name “lcrm_scp__scpclone” or “lcrm_scp__scpcopy” with the new name. It should […]
October 31, 2022

How To: Indicate When a Value Was Changed on a Super Clone Pro Clone Page

The Clone, Copy, and Edit page components can be embedded in a wrapper Visualforce page. This allows you to apply styles and use JavaScript to manipulate the page. This example shows how to change the background color of the table cell when an input value was changed. Create a new Visualforce page. Replace the lcrm_scp:ScpClone if using the Copy or Edit pages. Finally, create or update a custom button to […]
December 1, 2022

How To: Split Clone Into Multiple Steps by Chaining Pages

A lot of processing can occur when cloning large hierarchies of objects that contain custom Apex, workflows, process builders, and flows. One workaround is to split the cloning process into multiple steps where the primary object is cloned first, and then this is followed by copying child relationships that are processing intense. The user will need to click Save on each page to complete the full process. There are a […]
January 12, 2023

How To: Redirect to the Edit Lines Page After Cloning a Quote in CPQ

After cloning a quote with Super Clone Pro, the default behavior is to redirect to the new Quote record. Sometimes it is helpful to go directly to the Edit Lines page of the CPQ, so the quote can be recalculated and edited. The redirection can be accomplished by setting the “saveURL2” parameter in the Super Clone Pro custom button. Below is how your button may look. The “saveURL2” parameter accepts […]
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
Read more