Document Store Plugin

Use a CPQ document store plugin to store your quote documents as custom objects or in third-party integrations.

Required Editions
Available in: All Salesforce CPQ Editions
ParamTypeDescription
quoteSObject (SBQQ__Quote__c)Quote record information from the Salesforce CPQ quote.
documentSObject (SBQQ__QuoteDocument__c)The quote document record from Salesforce CPQ.
contentBlobRepresents the actual PDF or Word file contents.

Example 

Here’s a sample document store plugin.

1public class TestDocumentStorePlugin implements SBQQ.DocumentStorePlugin {
2
3   public void storeDocument(SObject QUOTE, SObject DOCUMENT, Blob CONTENT) {
4       // Custom document saving logic goes here.
5   }
6
7   // Reserved for future use
8   public Boolean isQuoteDocumentSaved() {
9      return true;
10   }
11
12   // Reserved for future use
13   public SObject[] listDocuments(SObject QUOTE) {
14      return null;
15   }
16
17}