Auto Mapping/Twin Fields in Salesforce CPQ
This is an amazing feature in CPQ where we can see without customization, writing the apex code application pass value from one object to another using "Configuration Attributes" and "Twin field"
Twin field: Certain pair of CPQ Objects pass custom field values from the first object to the second object when the second object is created. The values pass if the custom fields are editable, have matching field types, and have matching API names. We call these field pairs "Twin fields".
Example - Product Option(Configuration Attribute) and Quote Line.
If we want to map picklist field "Location__c" exists in Product to Quote line , then go to Quote line object and create exactly the same picklist field name "Location__c", that's it. Now if you set some value to that field in product the value automatically will be available on Quote line, this value can be used later for some filtering.
Configuration Attributes: Configuration attribute is the field which drives your product configuration at the Product Option level. Depending on that configuration attribute your product selection is available for agent.
- Field Name: Location
- Data Type: Picklist
- Picklist values: Hills, Beaches
- Attribute Name - Location Filter
- Target Field - Location__c
- Row order -10
- Column Order -1
- Position - Top
- Apply immediately checkbox -Checked















