A specific set of fields on Quote can be auto-populated from the associated Opportunity and Account at the time of creating a new Quote.
If you do not do the necessary setup, sales reps would spend time re-entering Quote fields which were already filled in at the time of creating Opportunity and Account.
Salesforce CPQ provides a Field Metadata custom setting where we can set up the fields that we want to be pre-filled with the corresponding values on Quote creation.
Use Case
John Cook works as a CPQ Administrator at Universal Containers (UC). Usually, Sales reps at UC go through Account -> Opportunity -> Quote flow to create new Opportunities and Quotes.
While creating a new Opportunity from an Account, lookup to that Account gets set on the Opportunity. While creating a new Quote from an Opportunity, lookup to that Opportunity gets set but, lookup to the Opportunity’s Account DOESN’T get set on the Quote. Reps have to explicitly select the corresponding Account in Account field on the Quote.
Sales Reps expect that the system should be smart enough to automatically pre-populate the Account lookup on Quote with its Opportunity’s Account.
How to Setup?
- Navigate to Setup | Develop | Custom Settings | Field Metadata. Click Manage
- Click New on the Field Metadata page.
- Enter the Name, Field Name and Object Name of the Field you want to auto-populate where
- Name: SFDC ID of Account Field (SFDC ID of the Quote Field)
- Field Name: SBQQ__Account__c (Quote Field API Name)
- Object Name: SBQQ__Quote__c (API Name of the Object)New Field Metadata Record
- To get the Account Field SFDC ID, navigate to Setup | Build | Create | Objects | Quote | Account Field. Copy the SFDC ID from the address URL of this page.
- Click Save.
Check if it works as expected
- Navigate to the Opportunity on which you want to create a new Quote, go-to Quotes Related List and click New button.
- Once done, you can see that the Account field on Quote gets pre-filled with the associated Opportunity’s Account i.e. Genepoint.
- Repeat for the other Fields that you want to be auto-populated.All records in Field Metadata
- When you click New Quote button in Quotes related list on Opportunity, you can see that the Account, Sales Rep and Billing & Shipping Address fields on Quote are auto-populated with the information from associated Opportunity and Account.
Considerations
Supported Fields –
- You can configure the following fields to auto-populate on a quote:
Field Label | Field API Name |
---|---|
Account | SBQQ__Account__c |
Billing City | SBQQ__BillingCity__c |
Billing Country | SBQQ__BillingCountry__c |
Billing Name | SBQQ__BillingName__c |
Billing Postal Code | SBQQ__BillingPostalCode__c |
Billing State | SBQQ__BillingState__c |
Billing Street | SBQQ__BillingStreet__c |
Distributor | SBQQ__Distributor__c |
Partner | SBQQ__Partner__c |
Primary Contact | SBQQ__PrimaryContact__c |
Sales Rep | SBQQ__SalesRep__c |
Shipping City | SBQQ__ShippingCity__c |
Shipping Country | SBQQ__ShippingCountry__c |
Shipping Name | SBQQ__ShippingName__c |
Shipping Postal Code | SBQQ__ShippingPostalCode__c |
Shipping State | SBQQ__ShippingState__c |
Shipping Street | SBQQ__ShippingStreet__c |
Billing Address Fields
When billing address fields are set to auto-populate, bill-to information is pulled from either the distributor, partner or direct account present on the Opportunity:
- By default, bill-to information is pulled from the distributor account.
- If there is no distributor account present on the opportunity, billing information is pulled from the partner account.
If there is no partner account present on the opportunity, billing information is pulled from the direct account i.e. Opportunity’s Account.
Shipping Address Fields
- When shipping fields are set to auto-populate, ship-to information is pulled from the direct account present on the Opportunity. If ship-to information within the direct account is empty, the auto-populating fields will instead pull the values from bill-to information.
Special Fields on Opportunity
You need to create special fields on Opportunity to auto-populate below fields on the Quote.
Quote Fields | Special Fields to be created on Opportunity |
---|---|
Primary Contact | QuotePrimaryContact__c |
Partner | QuotePrimaryPartner__c |
Sales Rep Field on Quote
- If “SBQQ__SalesRep__c” field is added in the Field Metadata custom setting, Quote’s Sales Rep field is pre-filled with the value from Opportunity’s Owner field.
- Navigate to the Opportunity on which you want to create a new Quote, go-to Quotes Related List and click New button.
- You can see that the Sales Rep field on Quote gets pre-filled with the associated Opportunity’s Owner i.e. JASON LIVESTON.
Salesforce CPQ uses URL Hacking to implement this feature. This is the reason why it works in Salesforce Classic ONLY and NOT in Lightning Experience. As a workaround, you can think about leveraging Publisher Actions/Quick Actions to pre-populate the Quote fields.