April 1, 2019

How To: Show a list of records to select from with the Super Clone Pro Copy page

The Super Clone Pro copy page allows you to copy related lists from one parent record to another parent record. The page has lookup field that lets you select the new parent record. This uses Salesforce’s default popup window to select a new record. This default search may show too many records. The following code is an example of how to display a filtered list of possible records to choose […]
June 2, 2019

How To: Add CSS Style to the Clone, Edit, and Copy pages

Changing the way the Super Clone Pro pages look can be done by adding CSS styles into a page that wrap around the Clone, Copy, and Edit components. Use CSS selectors to specify columns or inputs that should be modified. This includes things like making an input text area wider, adding a minimum width, setting a background color, or other styling attributes. Create a Visualforce page. This page will contain […]
January 30, 2020

How To: Clone files and documents in Salesforce

Documents and files are stored two different ways in Salesforce. Traditionally, files were saved in an object called “Attachments”. They were a direct child of the object they related to. Now Salesforce stores fines in a much more complex set of objects. Benefits of the new structure include versioning and the ability for one copy of a document to be referenced by multiple objects. Super Clone Pro has the ability […]
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 [crayon-5fc403cd9e06f004446892/] Controller extension [crayon-5fc403cd9e075161006031/] [crayon-5fc403cd9e079443365271/]
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 Custom Button