The Copy Configuration feature in Cloud Connect CPQ for Salesforce allows users to copy configuration data from one record to another. You can implement this on both Opportunity and Quote objects. This guide explains how to add the required action to the layout and how to create a custom Screen Flow that enables user selection of a source record and initiates the copy process using the Copy Configuration subflow.
Create a Custom Copy Configuration Flow
The Copy Configuration capability is delivered as a managed subflow that requires two inputs: sourceId and destinationId. Create a Screen Flow to let users select the source record (Opportunity or Quote) and pass both IDs into the managed subflow. You will then expose the flow on the object record page using a Quick Action.
Flow and Variables Creation
-
Navigate to Setup > Flows.
-
Select New Flow.
-
Select Screen Flow.
-
In the Toolbox pane, select New Resource.
-
Configure the Resource as follows, then ensure it is available for use as an input variable.
|
Field |
Value |
|---|---|
|
Resource Type |
Variable |
|
API Name |
|
|
Data Type |
Text |
|
Availability |
Select Available for input |
Create the Source Opportunity Selection Screen
This screen allows users to select the record from which the configuration will be applied.
-
Create a new element after the Start element of the flow.
-
Select Screen as the Type.
-
Enter Select Source Opportunity as the label (or use Quote if applicable). The API Name defaults to Select_Source_Opportunity.
-
Hide the Pause and Previous buttons in the Screen footer settings.
-
From the Components pane, drag a Choice Lookup component onto the screen.
-
Label it Source Opportunity and set the API name to Source_Opportunity_Choice.
-
In the Configure Choices section, select New Choice Resource.
-
Configure the Record Choice Set as shown below.
|
Field |
Value |
|---|---|
|
Resource Type |
Record Choice Set |
|
API Name |
|
|
Object |
Opportunity (or Quote) |
|
Filter |
|
-
Configure how each Choice is displayed.
|
Field |
Value |
|---|---|
|
Choice Label |
Name |
|
Data Type |
Text |
Create the Source Opportunity Not Selected Error Screen
If the user does not select a record, display an error message.
-
Add a new Decision element after the Select Source Opportunity screen.
-
Set up Record Not Selected as follows.
|
Field |
Value |
|---|---|
|
Label |
Record was not selected |
|
Outcome API Name |
|
|
Condition Logic |
All Conditions Are Met (AND) |
|
Condition |
|
-
Add a Screen element to inform the user that a Source Record was not selected.
-
Add the required Error message text using a Display Text component.
-
Configure footer buttons as needed.
-
Add an End element after the error message screen.
Create the Source Opportunity Verification Screen
After the user selects a record, show them the key details for confirmation.
-
Under the Default Outcome path, add a new Get Records element.
-
Set up Get Records as follows.
|
Field |
Value |
|---|---|
|
Label |
Get Opportunity |
|
API Name |
|
|
Object |
Opportunity |
|
Condition Requirements |
All Conditions Are Met (AND) |
|
Condition |
|
-
Add a new Screen element and name it Source Opportunity Details/Source_Opportunity_Details.
-
In the Next or Finish Button Label field, enter Copy.
-
Add a new Section component and create an extra column.
-
Using the Display Text component, build the verification layout. Fields may vary depending on your object or business requirements.
-
To reference data from the selected Opportunity, use the Get Opportunity element via the Resource Picker.
Copy Configuration Managed Subflow Utilization
Use these steps to add the Copy subflow.
-
Add a new Subflow element.
-
Choose Copy Configuration Screen/Xplx_CopyConfigScreen.
-
Set up the subflow inputs as shown below.
|
Field |
Value |
|---|---|
|
Label |
Copy Configuration |
|
API Name |
|
|
DestinationId |
|
|
SourceId |
|
-
Save and activate the flow.
Create a Quick Action
To allow users to launch your flow directly from an object record page, create a Quick Action.
-
Navigate to Setup > Object Manager > Opportunity > Buttons, Links, and Actions.
-
Select New Action.
Only Action will work properly. Referencing this from a Button or Link will limit functionality.
-
For Action Type, select Flow.
-
Choose the Screen Flow you created.
-
For the Label, enter Copy Configuration to Current Opportunity (or a label appropriate for Quote).
-
Enter an API Name.
-
Select Save.
Add the Quick Action to the Opportunity Layout
Use this option to surface the managed action directly on the object record page for end users. Add the packaged 'Copy Configuration to Current Opportunity' action to the layout.
-
In Salesforce, navigate to Setup > Object Manager > Opportunity/Quote > Page Layouts.
-
Select the required layout.
-
Select Mobile & Lightning Actions in the toolbar.
-
Drag Copy Configuration to Current Opportunity to the Salesforce Mobile and Lightning Experience Actions section.
-
Select Save.
If Dynamic Actions are enabled, see Adding Buttons to Layouts Using Dynamic Actions instead.
A View button on the Salesforce form to allow users to open the configurator in read-only mode. This enables users to review configuration details without the ability to modify any data.
Support for a Classic button is out of scope.