Configure S-Docs with Salesforce Quotes

Introduction to S-Docs With Salesforce Quotes

S-Docs works great with quotes, 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 standard 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. For a complete guide to configuring S-Docs with custom objects, visit our custom object configuration guide.

Note: The objects included in the S-Docs package are Contract, Opportunity, Account, Contact, Lead, Task, and Event.

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 a number of different file output types, including PDF and Microsoft Word.

Once you have completed these steps, you can create your quote template. We’ve provided a sample template at the bottom 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 when creating a template.

Step 2: Add the "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 the S-Docs Button

Just like using S-Docs with other objects, you need to create the S-Docs button and place it 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.

    Enter the following information for your button:
  3. Button Label: S-Docs
  4. Button Name: S_Docs
  5. Description: This option is not required.
  6. Display Type: Detail Page Button
  7. Behavior: Display in existing window without sidebar or header
  8. Content Source: URL.
  9. Use the following URL (note that double underscores are used):
    {!URLFOR('/apex/SDOC__SDCreate1', null,[id=Quote.Id, Object='Quote'])}


    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 names 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 names to be auto-generated. Here is an example of the button syntax (replace the highlighted values with your own template names):

{!URLFOR('/apex/SDOC__SDCreate1', null,[id=Quote.Id, Object='Quote',doclist='Template_1,Template_2'])}

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

  • Click Save.

Step 3b: 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.

Note: 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.

Sample Template

Click Here to download our sample quote template, which is also available on our Template Library.
For instructions on how to import your quote template, click here.

Tags: ,

Was this helpful?