Generate Documents

by Community Manager on ‎12-22-2015 10:50 AM - edited on ‎12-27-2017 02:54 PM by Community Manager


Click Generate Document on your Quote to generate a downloadable Quote document from one of your Quote Templates. You can also click Preview Document to quickly display a non-downloadable and non-printable instance of your Quote.




If documents should be visible to users other than the creator, they must be saved in a folder that all required viewers have permission to see. You can select this folder in Package Settings | Documents | Document Folder.


Caution: Documents will not generate if any of your Template Content contains an image formula that directs to an non-functional URL. We recommend image formula logic that doesn't return a non-functional URL if the image ID is invalid.



When a sales rep is ready to generate the Quote document:

  1. Click the Generate Document button from the Quote object. 
  2. Choose a Document Language. This picklist will be populated with all languages that Salesforce CPQ supports.  We recommend communicating to your sales reps which Locales you have available for translated quote documents. 

    Note: When you want to translate a generated quote into a different language, ensure that you set a specific document language rather than Default. When you select Default, Salesforce CPQ displays only untranslated content.This means that Salesforce CPQ will not display user-translated template content such as merge fields and labels with variable translation values.

  3. Choose a Template
  4. Select an Output Format.
  5. Enter a Document Name. This name will refer to the Document after it has been saved to its target destination and Documents. Note: This name will only save once the user clicks Preview Document and then downloads the Quote. Clicking Preview alone will not save the new name.
  6. Choose any Additional Documents you want to add.  Document names are prefixed to indicate what they're related to Product, Quote, Quote Template, or Opportunity.  
  7. Select one of the following actions: 


    Save Click to generate the document in the background and save to target destination and Documents. 
    Save & Email Click to generate the document and to open a task that allows you to email the document to a Contact.  You can copy additional recipients, create an email message, and attach additional files.  
    Preview Click to open a Preview of the quote document.  This will appear in a pop-up window unless the administrator has enabled Full Page Preview from Configuration Settings.

    Click to cancel the document generation; the document will not save to target destination and Documents. 

Generate documents in non-PDF formats

  1. On the sidebar, expand the Manage Users list and select Users.  
  2. Click Edit next to the user you wish to give permission to.  
  3. Toggle Allow Output Format Change to True.  NOTE: You may have to add this field to the page layout.
  4. On the Generate Document page, the user can now access the Output Format picklist, where a list of valid file types will be shown for them for document generation. 


Previewing Quote Documents

When you click Preview Document, you can choose only the quote's template and paper size. After clicking Preview, you'll see a copy of your quote in your browser's PDF viewer. Salesforce CPQ does not support downloading or printing previewed documents from any browser - follow the Generate Document process if you want to download or print.



Batch Document Generation for Renewal Quotes


by WimvB
on ‎04-01-2016 05:10 AM

Cannot see how to activate the Word option. 


  1. On the sidebar, expand the Manage Users list and select Users.  



Whre is this located, cannot see this

by janva
on ‎09-02-2016 01:46 AM

Question: When selecting output as Word document , selecting some additional documents (pdf and word) and then saving. When I open the generated document I see that only the Quote Template has been generated as Word. Where are my additional documents? Why aren't they added to the doc and also being converted to word? Maybe my expectation was to high?


Could it bee that it only generates the Quote Template itself as word and that additional docs are only generated as supplementary attachemnts when choosing to Save and email to customer?

by Glenda_Trintech
on ‎09-13-2016 07:59 AM

I would like to know if it is possible to reduce the clicks here... I'd like to create a custom button that will generate the quote document without going to the generate document screen. Could you please share the  code or URL to generate the document so I could put that code in a custom button? Thanks!

by ksherwin
on ‎09-14-2016 11:16 AM

Is it possible to prevent a document from being Saved based on an Approved Quote via Configuration?


Use Case:

Prevent Users from Saving a Document unless the Quote has been approved so to prevent accidental attachments to clients. 

by MD
on ‎11-13-2016 09:30 PM

Is it possible to change the Default Document Name?

on ‎12-01-2016 11:25 PM

The checkbox "Allow Output Format Change" is on the actual User object layout and needs to be added to be configurable to true. 


I went to Setup, then selected Manage Users. Selected my User profile, then edited the layout to add the field and set it to true.

by janscherer
on ‎01-12-2017 06:35 AM

I would like to change the behaviour for Save & Email. Can we define that the What ID of the task is set to the SBQQ.Quote instead of the Opportunity? How?

by debbersP
on ‎01-31-2017 08:30 PM

I'd like to know that too.  Also, how can we pick up the primary contact from the quote to put in the "to" field?

by rm192606
on ‎02-20-2017 11:16 PM

Wondering if there is a field on the Generate Document VisualForce page that captures the output language of the document that was generated. Our billing system needs to know which language the Document was generated in and I haven't been ablet to find a field that holds a record of this language. 


Any information is greatly appreciated. 




by Community Manager
on ‎02-22-2017 12:15 PM

@rm192606 We do have a field on the quote to store the language when we do mass document generation, but not for when manually generating a quote.  You should log an Idea for this feature request.

by rm192606
on ‎02-23-2017 09:11 AM

@tpastorino thank you for the response. Just so I understand the concept, at what point would you do Mass Document Generation? I've never heard of any sort of batch quote doc creation before.

Thanks again!  

by Community Manager
on ‎02-23-2017 12:14 PM
by markyg86
on ‎10-18-2017 03:48 PM



I've set up my translations for my quote template and English is the default language for the Org. When I generate the template with "Default" none of the translated fields populate. Is there a reason why my template isn't populating with the English translations? Or, is there a way to automatically select the correct language based on the user's language when entering the Generate/Preview Quotes screen? 



by ata
‎10-25-2017 04:44 AM - edited ‎10-25-2017 04:51 AM

@markyg86: Hi, the reason why you don't see the translated values is, because you need to select the "Document Language" to "English". With the value "Default" there will be no translation at all on the document. Like written on the article:


Note: When you want to translate a generated Quote into a different language, ensure you set a specific document language rather than Default. When you select Default, Salesforce CPQ automatically displays content in the language you're working in and does not translate anything


For example you have the field "Introduction Title" on the Quote Template with the value "Offer" and now you translate the field "Introduction Title" in english with "Your Offer". Then the result would look like this:

Document Language = "Default" -> "Offer" 

Document Language = "English" -> "Your Offer"


Hope I could help you with this explanation.

by markyg86
on ‎10-25-2017 09:27 AM

Thanks @ata!


I noticed that every time I go and preview a quote document, the Language picklist is set to "Default". Is this the expected behaviour? Or should it default to the company's default language setting?




by ata
on ‎11-03-2017 03:18 AM
Hi @markyg86,

The behaviour is the right one. The value "Default" is for the values that you set on the quote template, like "Offer" from my previous example.
Therefore no translation at all happens on the document as long the value on language is "Default". Also the products will not be translated (also if they have translations). They will be displayed on the document like the user has selected them on the quote wizard.

Hope this helps you for a deeper understanding.
by markyg86
on ‎11-03-2017 08:42 AM

Thanks @ata!


I figured out that the default locale for the users was set to English (Canada). After I changed the locale to US, the language defaulted to English. 


Thanks for the help and explanation!