So far, we have learned how to create opportunities, associate them with quotes, and add product configurations. We also learned how we can automate pricing and provide accurate discounts to customers. The next step is to finalize the quote, which is then sent to customers for approval and to have their signatures added. Quotes contain information about products and pricing. Reps can generate multiple quotes as per customer requirements and easily share them.
In this chapter, we will learn about generating CPQ documents. Salesforce CPQ provides out-of-the-box features to customize quote documents. Reps can send quotes to customers in an email, and we can also have third-party integrations for eSignatures.
In particular, we will be covering the following topics:
The formatting and the content of a quote document are controlled by the Quote Template. Templates contain different sections, and both the template and sections can be customized to configure which line items are displayed, what fields and signature fields can be added, what terms and conditions can be added, and so on. Templates can contain any number of sections, and we can reuse sections between multiple templates. Quote templates contain information about quotes, quote lines, products, pricing, discounts, and much more. These quote templates can be customized and used to present this information in a professional-looking document, which can be in the form of a PDF or Microsoft Word document.
In the next subsection, let's learn how an administrator can generate quote documents in Salesforce CPQ.
To generate a quote document, navigate to any quote that you have created in your Salesforce org. Navigate to App Launcher Salesforce CPQ Quote. Then, select any quote that you have created previously. On the quote page layout, you will find two buttons: Preview Document and Generate Document.
In this example, we will select the Preview Document button. Once the user selects this button, it opens the following screen:
Reps can select the template name and the paper on which the quote PDF needs to be printed. For this example, we are selecting Training Sample for the template and Default for the paper size.
When you click on the Preview button, the preview document opens, as shown here:
Here, you can see the header, company logo, shipping and billing addresses, and much more. You can see the quote line items, terms and conditions, and signature fields. The quote preview mode helps reps to validate all of this information. They can ensure that all details are accurate, or they can make changes before generating the actual quote. Once the rep validates everything, the quote document can be generated by using the Generate Document button on the Quote page layout.
Salesforce CPQ provides a sample template that can be either used as it is or customized as per your business needs. The template that we used to print the quote in Figure 5.2 is a sample out-of-the-box template that Salesforce CPQ provides. Administrators can create different templates and add content as required.
In the next section, let's learn how administrators create new templates.
A quote template controls the format of your company's quotes. Templates can be created as per your company's quote generation requirements. They contain different sections, which can be customized. You can create multiple quote templates as per your business requirements and set one as the default.
To create a new template, navigate to App Launcher Quote Template New. This will open the following screen:
As shown in Figure 5.3, there are a few important fields in the New Quote Template form:
The rest of the quote template contains the sections Header/Footer Information and Corporate Information for the company details. It also includes a section to define the font and styling, including group styling, section titles, and print options. Most of these details are for formatting the template. You can fill in these details as required and save the template.
Apart from sending a quote to customers, we can send them additional documents. For example, if you have product specifications, installation instructions, special instructions, a company overview, and anything else that you would like to send to your customers, you can upload those documents to Salesforce Files and capture the record ID, which will be later used to attach the documents. Additional documents can be attached to a quote in three different ways:
In the next section, let's learn how quote templates can be customized in the backend by administrators. Template content can be created in a Template Content object in Salesforce.
First, we need to build the content and then link the content to create the quote template. The created content, such as the cover page, customer information, signature blocks, and much more, can be reused in multiple templates. A template's content can be adjusted and displayed in a quote template, and the same content can be displayed in a completely different order in another template. Based on the content, templates are formed and template sections are how content is added:
Six types of content can be generated in Salesforce CPQ:
Now, let's learn how to create each of these types of content in the Salesforce instance.
We can create HTML content as per the company's requirements and add it to the relevant section of the template. Let's learn how an administrator can create HTML content. In this example, we want to create template content named Prepared For. To build the template content, navigate to App Launcher Template Content New HTML Continue. This will open the following screen:
Let's learn about a few important fields in the New Template Content form:
The syntax for a merge field is {!objectName. FieldName }. For example, if you want to reference the Billing Name field on the quote object, then the merge field syntax would be {!quote.SBQQ__BillingName__C}.
The data in the HTML section can be sourced from the Salesforce objects, as shown in the following table:
It is important to note that for a field to be available as a merge field, it must exist on the quote. If you need to reference fields from other objects, such as opportunities or accounts, you can create a formula field or use any other automation to move the related field to the quote. We cannot reference quote line data in the HTML section. Instead, it's always going to be referenced in the quote line section.
The content that you have created can be linked to a quote template. Content can be reused in multiple templates in the order and format that you need. To link the HTML content, open the quote template that you want to customize. In this example, let's use the template named Standard Quote Template that we created in Figure 5.3. To do this, navigate to Quote Template. Click on the Related tab. Select Sections New. This will open the following screen:
Template sections are the links between the template content and the quote template itself. They contain the Section Name and Template fields. The Display Order field shows the order in which this section is rendered, related to other sections. As a best practice, leave enough gaps (for example, 10, 20, and so on) so that additional template sections can be rendered in between, as required. The Content field is where we link the HTML content to the template. When we click this dropdown, it displays all of the template content that we have created in our Salesforce instance. In this example, we can see the Prepared For HTML content that we created in Figure 5.4. There are a lot of other display and formatting fields that can be filled as required. Template sections also include page breaks and filtering information that determine the formatting when we print the quote.
Line item content is used to display quote line data in tabular format. This shows the quote line product, discount, unit price, and much more.
We can use the Quote Line Group field in the line items to group fields and display the related subtotal. For example, we can group our quote lines based on the Product Family field (that is, hardware, software, service, and so on). Rather than creating multiple line item sections, we can group the line items in one line item section to display on the quote.
Conditional print fields can be used to dynamically show or hide fields – for example, if we want to show the discount only when applicable and not include a blank field in our quote template. We can create a checkbox and, based on the Boolean value, we can hide or show a field. Template sections can also be printed conditionally.
To create the piece of line item content, navigate to App Launcher Template Content New Line Items Continue. Fill in the Content Name field, the formatting options, and the Table Style field. Then, click Save, as shown here:
The template content can be linked to one or more quote templates as required.
Now, let's link the line item content created in Figure 5.7 to a quote template. To do this, navigate to any Quote Template. Click on the Related tab. Select Sections New. This will open the following screen:
As shown in Figure 5.8, using the Content dropdown, we select Line item Content, which we created previously. The other optional fields in the New Template Section dialog can be selected as per the business requirements. There are a lot of formatting fields that the administrator can use to create these template sections and adjust the formatting.
Once the section content is saved, go back to the Related section in the quote template. There is another related section in the quote template, which is called Line Columns. In the Line Columns section, we can define the columns we want to be displayed in the table.
We can create a new line column by navigating to Quote Template Related Line Columns New. This will open the following screen:
Let's learn about some of the mandatory fields that an administrator needs to update in the New Line Column dialog:
The rest of the fields are optional, and most of them are formatting fields. A few of them are useful for customizations, such as the Conditional Print field. This field can be used to conditionally render a field onto the quote template. For example, if we want to display the discount field only when the value is greater than zero, we can create a custom field checkbox – Display_Discount__c (API name) – and add the field to the quote page layout. We can also use CPQ price rules to automate this.
A sales rep can manually check this checkbox, or we can update this field automatically based on the condition we set for the discount to be greater than zero. This custom field can be used in the Conditional Print field. The column will be displayed only when the custom field checkbox is set to true. The Conditional Print field can also be used to show or hide template sections.
For example, when there are no discounts applied to a quote, we do not want to send the quote document with blank discount columns. This column can be conditionally rendered only when the discount values are present. For this example, let's use the additional discount field on the quote as a conditional field. Copy the API name of the field on the quote – in this example, that's the additional discount field API. Now, navigate to Object Manager Line Column Fields & Relationships Conditional Print Values New and paste here the API name we copied from the quote object, and click Save. Next, navigate to the Quote template Related Discount Percent Conditional Print Field and select the picklist value of the additional discount field API name. Now, when we print the quote document, the discount column can be controlled with the conditional print field.
To test the content, navigate to any quote in our Salesforce org and preview the quote template, as shown previously in Figure 5.1.
Salesforce CPQ provides out-of-the-box functionalities to generate several Term Conditions. These can be displayed in all quotes, or they can be customized to only appear in specific quotes as per the business needs. For example, the terms and conditions for hardware products might be different from software products. The Term Conditions field on a quote determines when to display the terms and conditions. The Condition Met field is used to display the relevant terms only when the associated conditions are met. Using this feature, the quote terms can be dynamically displayed. When we have multiple terms, they are displayed in the template based on their print order values. For example, when our quote contains software products, we might want to display the terms and conditions for software purchases.
We can allow users to modify the quote terms by using the Modified Terms feature in a quote. This feature needs to be used with caution, depending on your company's business needs. Modified quote terms are only applicable to the specified quote and will not apply to other quotes. For reps to modify terms, they may require approval from their managers.
Important Note
Modified quote terms will not apply to amendments and renewals.
To create quote terms content, navigate to App Launcher Template Content New Quote Terms Continue. This will open the following screen:
Enter a meaningful name in the Content Name field, set your preferred formatting options, and save the record.
The quote terms content can be linked to a quote template using the Sections related list. To do this, navigate to Quote Template Related Sections New. Let's use the Quote Terms Sample content created in Figure 5.10 and link it to Standard Quote Template, which we created in Figure 5.3.
A quote term object can be used to create terms and conditions. To do this, navigate to App Launcher Quote Term New. This will open the following screen:
Let's learn how to configure a few important fields here:
Fill in all the required fields and save the quote term created in Figure 5.11. To dynamically display a quote term, navigate to the related section of the quote term and create a new term condition by clicking Term Conditions. Administrators can use a tested variable or a summary variable (that is, the configurations we learned about in previous chapters) to evaluate the term condition.
Now that we have learned how to create and customize quote templates, let's see how they can be sent to customers to be signed with eSignatures.
Prior to the development of eSignatures, a sales rep would email a quote template to customers, which would then be printed by the customer to sign before returning. Today, using eSignatures is becoming the standard way quotes are signed by customers. However, Salesforce CPQ allows automating this process by integrating with third-party tools such as DocuSign. These tools can be used to directly email the quote document to customers, which can then be signed electronically. Then, the documents can be saved in Salesforce objects. Both administrators and customers can save time by using these integrations. So, let's learn how DocuSign can be integrated with Salesforce CPQ.
Your administrator can create a case with Salesforce support for the installation of the DocuSign package. The DocuSign for Salesforce CPQ package uses the SBQQDS namespace. The DocuSign for Salesforce plugin requires the DocuSign Business Pro edition. To install DocuSign for Salesforce, you need to follow these steps:
Update the electronic signature field in the package settings to the DocuSign plugin. To do this, navigate to Setup Quick Find Installed Packages Salesforce CPQ Configure Plugins Electronic Signature Plugin SBQQDS.DocusignPlugin Save.
Users can go to their profile and enter their DocuSign credentials on the DocuSign for Salesforce CPQ setup Visualforce page.
By default, DocuSign links the Envelope ID field on the quote document with the DocuSign envelope ID field. You can also link additional fields as required, based on what additional fields you would like to see on the quote document object from DocuSign. You can find the complete details on the DocuSign documentation at this link: https://support.docusign.com/en/guides/docusign-for-salesforce-cpq.
In this chapter, we learned how to create and customize quote templates in Salesforce CPQ, and we explored the out-of-the-box features that administrators can apply to configure quote templates. Quote templates can be created, customized, and reused multiple times. Also, Salesforce CPQ allows us to create multiple templates, and reps can choose the right template based on their business requirements. We have also learned how third-party applications for eSignatures can be integrated with Salesforce CPQ. This helps reps to directly send quote documents using eSignature plugins, and this means they can avoid relying on manual emails for quote signatures. This improves the overall quote-to-cash process efficiency, as we can complete deals and receive signatures with no errors in minutes.
In the next chapter, we will learn about guided selling, which is another out-of-the-box feature that Salesforce CPQ provides for the sales process.
18.117.71.211