Thanksgiving Week Special – Get 50% OFF on FileTranz

Claim Your Offer

Document Builder in Salesforce Revenue Cloud Advanced

Document Builder Salesforce Revenue Cloud

By Anandhakumar Thangasamy
Senior Salesforce Developer

Document Builder in Salesforce Revenue Cloud Advanced

 

If you have worked with designing the document template for Quote PDFs in Salesforce CPQ, you may know that setting up document templates can get complex. At the same time, CPQ gives us a lot of flexibility - whether it’s controlling the visibility of content based on conditions or displaying content in different formats. In Salesforce CPQ, document templates are data-driven. The configuration involves working with several CPQ objects, such as SBQQ__TemplateSection__c, SBQQ__TemplateContent__c, and others. As the document requirements grow, managing all these records and their relationships can become a challenge.

This is where the Salesforce Revenue Cloud Advanced(RCA) takes a different approach. Instead of relying on data-driven approach RCA introduces a metadata driven approach for document generation. This makes the process of setting up and managing document templates much simpler, while still providing the flexibility needed to create dynamic documents. So If you're coming from Salesforce CPQ, you may wondering How does Document Builder in Revenue Cloud Advanced actually work? and more importantly How does it simplify the document-generation experience compared to CPQ? Let’s take a closer look at Document Builder in RCA and explore how it works, how it is configured, and what makes this approach different.

What Is Document Builder?

Document Builder is a tool in Salesforce Revenue Cloud Advanced used to set up and manage the Quote document templates. Instead of creating templates using multiple data setup as Salesforce CPQ requires, Document Builder provides admins a drag and drop, visual builder that looks and feels like lightning app builder. When creating a new template, you choose the object the template relates to, then start from either a blank canvas or a default template to save time. From there, you're dropped into the builder canvas, where you drag in the components and fields you need, much like assembling a Lightning page. The completed template can be used to generate customer-facing PDF documents from Quote records.

How It Differs From Salesforce CPQ

Comparing to Salesforce CPQ, Document Builder in Salesforce RCA differs in a few ways below,

  • Metadata based architecture: RCA takes a metadata-driven approach to template configuration, making the template easier to manage and deploy using Salesforce's standard metadata deployment mechanisms.
  • Conditional Visibility: Document Builder comes with conditional visibility as similar as record pages, app pages so it is easy to configure without necessarily requiring custom formula fields or Apex for straightforward visibility requirements. For an example, display Premium Support Terms to the Platinum Customers alone.
  • HTML Knowledge: To design a structured template content in Salesforce CPQ, that leans on HTML knowledge. But Document Builder's drag and drop workspace and visual components are useful to build the similar templates without knowledge on HTML.
  • Images: Adding logos and images to CPQ templates historically meant dropping into Salesforce Classic. Document Builder handles this natively in Lightning.
CPQ vs RCA Document Builder

 

Design Your First Template

Designing the Document Templates should begin with the final business document in mind. Before directly adding the components to canvas, design the major sections. For example,

  • Company Header (Along with logo)
  • Customer Information
  • Quote Information
  • Quote Lines
  • Terms and Conditions
  • Footer

This will help admins to get a clear structure before the individual components to be added. And also this will be useful for distinguish between static and dynamic content. For an example,

Static Contents:

  • Terms and Conditions
  • Company Information

Dynamic Contents:

  • Quote Details
  • Quote Lines
  • Product Name
  • Quantity
  • Price Information

For this example, let's create a Quote Template that generates a customer-facing quote containing the customer information, quote details, quote line items, and pricing summary.

Steps Involved

Step 1: Create Template

  • Go to Setup, search for Document Builder and open that.
  • Click + New Template button.
  • Document Builder is object-driven, and Quote is currently the supported root object for Quote document templates.
  • There are two options. Either you can go with default quote template that has prebuilt setup or you can go with blank template where you have to build from scratch.
  • For our scenario select Blank Template and click Done.

Step 2: Build the Header

  • Start by building the document header, which typically contains the company logo and company information.
  • From the components pane, drag and drop Image to the header section and select the logo that is uploaded to Salesforce.
  • If you need to add company information, place the Grid with two sections and then add you logo to the first section and then add the Company Details component that will automatically fetch the information from the user details.
Document Builder - Header

 

Step 3: Add Quote Information

  • From the fields section, drag and drop the Quote fields that are needs to be placed in the document. i.e., Account Name, Contact Name, Quote Number, etc.,
Document Builder - Quote Information

 

Step 4: Add Quote Lines and Groups

  • As part of Document Builder, we have standard Quote Line Items and Quote Line Groups and Items components to display Quote Line and Group information.
  • Quote Line Items component has the table with predefined Quote Line fields whereas Quote Line Groups and Items component displays the table with predefined Quote Line fields along with the Quote Line Groups.
  • For our use case, I've place the Quote Line Groups and items component to the canvas.
Document Builder - Quote Line Groups and Lines

 

Step 5: Add Terms and Conditions

  • The key part of the Quote document is to include the terms and conditions applicable to the Quote.
  • To add them, drag and drop the Rich Text component to the canvas.
  • From the right side panel, define the terms and conditions as this accepts the formatting similar to the rich text data field.
  • If certain terms should only appear for specific scenarios, visibility rules can be applied to the relevant component.
Document Builder - Terms and Conditions

 

Step 6: Apply Conditional Visibility

There is no need to display all the sections to all the customers. For an example, a particular term is applicable for the Platinum tiered customers means, we can use the component visibility filter similar to the record pages. This will accept up to 10 condition with AND, OR and the custom logical condition as well.

Step 7: Activate and Test the Template

Click on the Activation button and activate the document template. Once active, users generate the document from the record by clicking Generate PDF Document on the Quote. 

With these steps, you have a basic Quote document template ready for PDF generation.

Limitations and Considerations

RCA Document Builder is still a new tool as it grows to mature, we need to consider a few things before committing your document generation approach,

  • Complexity: Document Builder is best for lightweight document templates, if your business requirements are highly complex layouts then it becomes difficult to maintain.
  • Complex Conditional Logic: Though its allowing conditional visibility, the complex business logic can become difficult to manage directly within the template.
  • Large Data Handling: Generating documents with large datasets may impact performance and, depending on the volume and complexity of the document, may result in generation failures.
  • Quote Lines and Groups: The standard Quote Line components provide predefined columns, so they may not meet requirements where the business needs a completely customized line-item table.
  • Dynamic Documents: Document Builder is designed for structured document generation. If the requirement is to create a document where most of the section changes dynamically based on the complex rules then it is difficult to handle using this approach.
  • Limited Root Object Support: Document Builder currently uses Quote as the root object for Quote document templates. This limits scenarios where the document needs to originate directly from another business object.

Conclusion

Document Builder in RCA gives a simpler, drag and drop option to generate the Quote documents compared to the traditional Salesforce CPQ template configuration. It's metadata driven architecture and conditional visibility make it easier for admins to design and maintain the quote documents. However, it's quite important to understand its limitations around complex layouts, conditional statement, larger data and root object support. For the requirements beyond its capabilities there are a few other options comes with RCA such as OmniStudio Document Generation. From complex CPQ templates to a simpler RCA experience!


free-consultation