Super Clone Pro
Clone Page Custom Button

Clone functionality will make a copy of the primary object and it’s child relationship records. To get started, all you need to do is create a configuration, create a custom button, and add the custom button to a page.

Custom Button

  • Enter a Label and Name
  • Set “Display Type” to “Detail Page Button”
  • Set “Behavior” to “Display in existing window without sidebar or header”
Custom Button setup for the Clone page

Button URL

The typical setup will reference the Super Clone Pro page, a URL parameter for the record id, and a URL parameter for the configuration name. The example below uses the URLFOR function with parameters.

{!URLFOR('/apex/lcrm_scp__scpclone', null, [rid=Opportunity.Id, cfg="opportunityConfig"])}

Additional URL parameters could be added within the URLFOR function or after. Adding them after may be more readable or flexible for long saveURL2 strings or chaining together clone actions.

{!URLFOR('/apex/lcrm_scp__scpclone', null, [rid=Opportunity.Id, cfg="opportunityConfig"])}&retURL2=%2F{!Opportunity.Parent_Opportunity__c}

URL Parameter Options

Required Parameters

  • cfg – Name given to the configuration
  • rid – Record Id of the primary object being cloned

Optional Parameters – Navigation

  • cfgedit – When using the After Clone Display “Super Clone Pro Edit Page” configuration, set a specific configuration for the edit page to use
    • Example: &cfgedit=myeditconfig
  • retURL2 – URL encoded string that references a page to navigate to after the cancel button is pressed
  • saveURL2 – URL encoded string that references a page to navigate to after the save completes successfully
    • This overrides the “After Clone Display” setting of the configuration
    • Use this URL parameter to navigate to a page that is not an option in “After Clone Display” setting, like a custom Visualforce page or tab.

Optional Parameters – Display

  • buttonSave – Set the label of the Save button, or hide the Save button by setting the parameter to 0
    • Custom Label Example: &buttonSave=Create Renewal
    • Hide Button Example: &buttonSave=0
  • buttonCancel – Set the label of the Cancel button, or hide the Cancel button by setting the parameter to 0
    • Custom Label Example: &buttonCancel=Return
    • Hide Button Example: &buttonCancel=0
  • lss – Turn off application of Lightning Style Sheets on the Visualforce by setting the value to 0
    • Example: &lss=0
  • pricolumns – Specify a number of columns to display for the primary object.
    • Valid values include 1 to 8 columns
  • rowsperpage – Paginate rows on all levels of the hierarchy when the number of records exceed this value
  • rowsperpagel2 – Paginate rows on the 2nd level of the hierarchy when the number of records exceed this value
  • rowsperpagel3 – Paginate rows on the 3nd level of the hierarchy when the number of records exceed this value
  • rowsperpagel4 – Paginate rows on the 4nd level of the hierarchy when the number of records exceed this value
  • rowsperpagel5 – Paginate rows on the 5nd level of the hierarchy when the number of records exceed this value
  • rowsperpagel6 – Paginate rows on the 6nd level of the hierarchy when the number of records exceed this value

Optional Parameters – Processing Behavior

  • activeteam – Filter AccountTeamMember, OpportunityTeamMember, and CaseTeamMember relationships, so only active users are included when cloning. This prevents the ‘Owner or User is Inactive’ exception.
    • Example: &activeteam=1
  • assignmentrules – Allow assignment rules to run for Cases, Leads, and Topics.
    • Example: &assignmentrules=1
  • batchmonitorlinkid – Show a link to a specific record on the Batch Monitor Page.
    • Example: &batchmonitorlinkid={!ParentId__c}
  • clonemult – When using “Allow Cloning Multiple Times” on the configuration, set the default number of clones that will be prompted to the user.
  • clonemultmax – Set a maximum number of clones that can be requested when “Allow Cloning Multiple Times” is enabled.
  • debugrollback – Rollback the transaction to prevent the records from committing to the database
    • Example: &debugrollback=1
  • norerender – Display a modal to show the page is processing when the save button is clicked. Use this when Rich Text fields are displayed on the confirmation page because they prevent the Save button from being deactivated while processing.
    • Example: &norerender=1

Additional Information