Clone SObject List
Overview
The Clone SObject List component within Plinqx is designed to efficiently clone a collection of Salesforce records (SObjects). This component is invaluable for scenarios where duplicate records need to be created with similar data, maintaining data integrity and consistency.
Inputs
-
SObject:
Define the SObject type for the resulting cloned records.
-
Fields:
Provide a comma-delimited string of field API names to be included in the clone. Only these fields will be replicated in the cloned records.
-
ObjectAPIName:
Specify the API name of the SObject as a string.
-
RecordIds:
Input a collection (text collection) of the record IDs that you wish to clone.
Outputs
-
CloneResults:
The output is a collection of SObject records, as specified in the SObject input. This collection contains the cloned records with the fields specified.
Example Scenario - Bulk Opportunity Cloning
Scenario Overview:
A sales team in a Salesforce org often creates new opportunities that are similar to existing ones. To streamline their process, they need to clone existing opportunities, including specific details like the account name, stage, and amount.
Implementation with Clone SObject List Component:
-
Flow Setup:
Create a Salesforce flow that is triggered when a user selects multiple opportunities for cloning.
-
Adding Clone SObject List Component:
Incorporate the Clone SObject List component into the flow.
-
Configuring Inputs:
-
Set 'SObject' to
Opportunity
. -
Define 'Fields' to include, such as
AccountId,StageName,Amount
. -
Enter 'ObjectAPIName' as
Opportunity
. -
Provide 'RecordIds' as the collection of opportunity record IDs selected for cloning.
-
-
Executing Clone Operation:
The flow uses the Clone SObject List component to create duplicates of the selected opportunities, including only the specified fields.
-
Resulting Output:
The 'cloneResults' output provides a collection of the newly cloned opportunity records, ready for any additional processing or updates.
Results:
This implementation enables the sales team to efficiently duplicate multiple opportunities, saving time and reducing manual data entry errors. The cloned opportunities can then be further modified as needed, maintaining consistency in data entry and improving overall productivity.