You can you Document Generation(Doc Gen) feature to generate a document for the line items in the quote. You can use this functionality by clicking Send Proposal button on the Quote/Proposal Detail or Cart page. After clicking the button you are redirected to Doc Gen Wizard page. The Sales Rep can generate in a particular format, merge documents, preview, and send the documents to customers on the Doc Gen Wizard page.  To use the feature, you must configure the following settings.

To configure output format for the profile

You must define an output format for the profile, in case you want to generate documents automatically.

  1. Click the All Tabs icon () and click Proposal Document Output Formats.
  2. Select the profile you want to update.
  3. Select one of the following:
    • Prompt
    • Doc
    • Docx
    • PDF
    • RTF
  4. Click Save.

To add endpoint URL

You must add the endpoint for the document URL that you want to list on the Proposal Doc Gen. Follow the steps below:

  1. Go to Setup > Security Controls > Remote Site Settings.
  2. Add a New Remote Site.
  3. Click Save.

To enable Salesforce Files

  1. Go to Setup > Develop > Custom Settings > Proposal System Properties > Manage.
  2. Find System Properties and click Edit.
  3. Select Enable File.

  4. Click Save.

To configure preview of File documents on doc gen page

When you are using Files in your org, CPQ does not automatically enable previews for files. You must disable Enable clickjack protection for customer Visualforce pages with headers disabled fields, to enable file document preview on the Doc Gen page. Follow the steps below to enable preview on the Doc Gen page:

  1. Go to Setup > Administrator Setup> Security Controls > Session Settings> Manage.
  2. Find Clickjack Protection.
  3. Disable Enable clickjack protection for customer Visualforce pages with headers disabled.

To add Send Proposal button on the quote page

  1. On the Quote/Proposal Detail page, click Edit Layout.
  2. Select Fields on the left-hand side menu.
  3. Search Send Proposal using Quick Find.
  4. Drag and drop the field on the quote.
  5. Click Save.

Configuring Fast Doc Gen

You can use this feature to generate the default document automatically. When the Sales Rep clicks on Send Proposal button, a document is generated automatically using a queried or default template. The generated document is in output format defined and is displayed on the Doc Gen page.  You can set up default document generation for the overall org or for specific scenarios as the document generation depends upon the templates that are defined.

In the case of large quotes, Conga recommends that you must not use Fast Doc Gen as CPQ generates default documents in sync mode.

CPQ generates documents automatically based on the template that is defined in Query Template Filter and the Default Template Name setting. The automatic generation of documents using a particular template is based on the below-mentioned scenarios:

Scenario
When a template is defined in Default Template Name but not in Query Template FilterThe document is not generated.
When the same template is defined in both Default Template Name and Query Template FilterThe document is generated using that template.
When a single template is defined in Query Template Filter but no template is defined in Default Template NameThe document is generated using that one template.
When multiple templates are defined in Query Template Filter but no template is defined in Default Template Namethe document is not generated.


Prerequisite

An output format must be selected for the profile. Refer to section To configure output format for the profile.

To enable fast doc gen

  1. Go to Setup > Develop > Custom Settings > Proposal System Properties > Manage.
  2. Find System Properties and click Edit.
  3. Define the fields mentioned in the table:

    FieldDescription
    Enable Fast Doc GenSelect the checkbox to enable fast document generation.
    Default Email TemplateEnter the name of the template to set it as default.
  4. Click Save.

Configuring Large Document Generation for Quote

You can use the Large Document Generation feature to generate documents for quotes with a large number of line items. The document generation for a large quote is processed asynchronously in small chunks based on the threshold and batch size and the resultant document is attached to Notes and Attachments. This feature is available in the Generate button and not available in the DocGen, Send Proposal button.

You must define the following settings to allow the Sales rep to generate a document for a quote with a large number of line items. You need to define a threshold and a batch size for the number of line items in the quote. When the number of line items in the quote exceeds the threshold, the quote is considered a large quote. The line items in the large quote are processed in the smaller chunks based on the batch size you defined.

You must take into consideration the template that the Sales rep uses to generate the document before defining the batch size. For example, if the template includes information about only line item fields is considered a simple template and can have large batch size. Similarly, a template that has too many line item fields, attribute information, adjustment line details would be considered a complex template and should have a small batch size.

To define the threshold and batch size.

  1. Go to Setup > Develop > Custom Settings > Proposal System Properties > Manage.
  2. Find System Properties and click Edit.
  3. Define the fields mentioned in the table

    FeildDescription
    Enable FileSelect the checkbox to enable files in the quote
    Enable Submit Merge CallSelect the checkbox to enable the Submit button on that
    Large Doc Threshold

    Enter a number in the field.

    The default and the maximum value of the Large Doc Threshold is 10000. You can define a value lower than 10000. Setting a value of -1 for the Large Doc Threshold invalidates the setting.

    Large Doc Process Batch Size

    Enter a number in the field.

    The default value of the Large Doc Process Batch Size is 1000 and a maximum of 2000. You can define a value lower than 2000, based on template complexity.

  4. Click Save.

To define APTS_LargeDocSOjects Admin Setting

By default, CPQ considers Proposal Line Item and Agreement Line Item as Large Objects for document generation. In case you used any other object in the template, you must use this setting to define such objects as Large objects. You can specify multiple objects as Large Objects and also provide batch size for each of these objects. You must define the Admin Setting APTS_LargeDocSOjects by following the steps below:

  1. Go to All Tabs > Admin
  2. Click New, to create a new record.
  3. Fill the following details

    Field

    Value

    Name

    APTS_LargeDocSObjects

    Value

    Leave the field blank

    Code

    Apttus_QPConfig__ProposalLocation__c=5

    Use the format Auto Applied <Object_API_name=<Batch Size>> to defined the objects.You can add more objects separated by a new line. Decide the batch size based on the complexity of cart and template.

  4. Click Save