S-Docs works great with the quote, orders, and other standard objects. Not all organizations have these Salesforce features enabled, however, so they are not configured with S-Docs out-of-the-box. This document will show you how to configure S-Docs with objects that aren't included in the S-Docs package, using the Quote object as an example. You can follow this process with any standard objects that are not included in the S-Docs package.

With S-Docs for Salesforce, you have much more power in generating quotes and documents that look exactly as you want them to. You can include many more related objects, filter and group your line items, format tables, include multiple logos, insert product images, insert a terms and conditions section, and then email your generated quote as an MS Word, PDF, or MS Excel file.

Since Quotes functionality within Salesforce is not enabled by default, not every org has enabled this feature. To take advantage of S-Docs with quotes you will need to complete 3 configuration steps (detailed instructions are provided below).

  1. Add “Quote” as an available picklist value for S-Docs Templates.
  2. Create a lookup field named “Quote__c” (note the two underscores) on the SDoc Relationship object.
  3. Create an S-Docs button and place it on your quote page layout.

Once you have completed these, you can create your quote template. We’ve provided a sample template in the appendix of this document that you can copy/paste into your template source.

STEP 1: Add "Quote" to "Related to type" fields on the "SDoc Template" object:

  1. Click on Setup (found on at top right corner of your Salesforce homepage).
  2. Navigate to Build ➤ Create ➤ Objects by typing "Objects" into the Quick Find / Search bar on the left.
  3. Click on the SDoc Template link (not the Edit link).
  4. Scroll down to the "Custom Fields and Relationships" section and click on the Related to Type link (not Edit or Replace).
  5. Scroll down to the "Values" section and click New.
  6. Type "Quote" into the text field to add it as a picklist value, then click Save.

STEP 1b: Confirm you can create a Quote template:

You should now be able to create a template and choose "Quote" from the picklist in the "Related to type" field.

STEP 2: Add "Quote" lookup field:

This step allows you to associate the S-Doc with the Quote object, so that users can see a related list of all S-Docs created related to a quote.

  1. Navigate back to Setup ➤ Build ➤ Create ➤ Objects
  2. Select SDoc Relationship (not Edit).   
  3. Under Custom Fields and Relationships, click New.

Follow the Custom Field creation steps:

Step 1 of 6 - Pick "Lookup Relationship," then click Next.
Step 2 of 6 - Select "Quote" from picklist values, then click Next.
Step 3 of 6 - Field label and field name should be "Quote," then click Next.
Step 4 of 6 - Checkbox should be visible for all users.
Step 5 of 6 - Checkbox should add the field for the layout.
Step 6 of 6 - Accept default, then click Save.

STEP 3: Create a button to place it on your Quote page:

Just like using S-Docs with other objects, you need to place an S-Docs button on the detail record layout in order for the user to initiate creating a document.

  1. Navigate to Setup ➤ Build ➤ Customize ➤ Quotes ➤ Buttons and Links.
  2. Click New Button or Link.
  3. Type the button Label (e.g. "S-Docs").
  4. Display Type: choose Detail Page Button.
  5. Choose a Behavior (we recommend 'Display in existing Window with Sidebar').
  6. Content Source: Choose URL.
  7. Use the following URL (note that double underscores are used) /apex/SDOC__SDCreate1?id={!Quote.Id}&Object=Quote
  8. Optional: You can have users save clicks by enabling the “One-Click” feature. Enabling this will bypass the document creation wizard. An administrator simply needs to change the button definition to include a list of pre-selected S-Docs template IDs that will be automatically generated. Placing this button will let users create all the documents encoded in the button without any additional interaction. The button syntax uses a parameter called “doclist,” which is followed by one or more template IDs to be auto-generated. Here is an example of the button syntax (replace the highlighted values with your own template IDs):
    /apex/SDOC__SDCreate1?id={!Quote.Id}&Object=Quote&doclist=a02G0000005CiDO,a02G0000005CeCS

    For more information on the one-click and zero-click features, click here.

  9. Click Save.

Step 2b: Place button on your page layout

  1. Navigate to the page layout: Setup ➤ Build ➤ Customize ➤ Quotes ➤ Page Layouts, then click Edit (and repeat this for every page you'd like to add the button to).
  2. Click Buttons on the top left toolbar menu to highlight and view buttons available.
  3. Click and drag the button you just created into the "Custom Buttons" section within the Quote Detail section.
  4. Once you have added the button, save the page layout and repeat steps 2-6 for any other layouts where you would like to add the button.

If you already have a quote template created, you can now open a quote record, click on the S-Docs button, and create your S-Docs quote, which will be automatically be associated to the quote record.

You can repeat this process for any standard object that is not included in the S-Docs package. To learn how to create S-Docs templates, click here. To learn about the S-Docs Template Editor, click here.