S-Docs Custom Settings

Introduction

The S-Docs Custom Settings is a List Custom Settings record that can be used to modify S-Docs's functionality. This article explains how to locate the S-Docs Custom Settings and each field's functionality.

Note: This article is intended to be used as a reference guide. In general, avoid editing the S-Docs custom settings record unless directed by another article.

Locate S-Docs Custom Settings

From the Setup menu, type "Custom Settings" into the Quick Find bar, then click Custom Settings in the dropdown menu. Then, locate the SDocsSettings record and click Manage.

If no record exists, click New. Otherwise, click Edit to open and modify the S-Docs Custom Settings record.

S-Docs Custom Settings Fields

The S-Docs Custom Settings appears as follows. Refer to the table below the image for each field's functionality and accepted values.

1. Name

Function:
Record Name
Values:
SDocsSettings

Note: Do not change the name of this record!

2. ConnectedAppCertificateName

Function:
Passes the name of your Self-Signed Certificate to S-Docs for use with your S-Docs Connected App
Values:
Name of the Self-Signed Certificate used with your S-Docs Connected App (used with S-Sign e-signatures)
Normally this certificate is named "SDocsCert"

3. ConnectedAppConsumerKey

Function:
Passes your S-Docs Connected App Consumer Key to S-Docs
Values:
S-Docs Connected App Consumer Key

4. ConnectedAppLoginURL

Function:
Passes your Salesforce login URL to S-Docs for use with your S-Docs Connected App
Values:
Your Salesforce Login URL
Production: https://login.salesforce.com
Sandbox: https://test.salesforce.com

5. ConnectedAppTokenURL

Function:
Passes your Salesforce domain to S-Docs for use with your S-Docs Connected App
Values:
Your Salesforce domain
E.g. https://na123.salesforce.com

6. ConnectedAppUserName

Function:
Passes the name of your S-Sign Internal User to S-Docs for use with S-Sign
Values:
Username of your S-Sign Internal User (used with S-Sign e-signatures)

7. Platform Encryption Enabled

Function:
Allows S-Docs to work with Salesforce Shield Platform Encryption
Values:
Checked to enable

8. SDEdit Custom URL

Function:
Adds a custom button to the S-Docs Live Edit page
Values:
Syntax:
Button_Name,Button_URL
Example:
Open Clip Art Gallery,/apex/ClipArtGallery

Note: You can add Live Edit Apex Parameters to this URL to modify the button's color/functionality.

9. SDRelationship Lookup Names

Function:
Allows you to create SDoc Relationship lookup fields to custom objects with API names that exceed the Field Label/Name character limit.
Enter an alias object API name into the Field Label/Name fields for your SDRelationship lookup field, then map it to the full custom object API name using a JSON map in this field, as shown in the example.
Values:
JSON map of key-value pairs.
Example:

{
"Very_Long_Object_API_Name__c": "Alias_Put_In_SDRelationship_Field_Label__c",
"Another_Very_Long_Object_API_Name__c": "Another_Alias_Put_In_SDRelationship_Field_Label__c"
}
Note: Do not insert the "__c" of your alias in the SDoc Relationship Field Label or Field Name; Salesforce adds this automatically.

10. SDJobs Batch Size

Function:
Sets the number of S-Docs Jobs to process concurrently
Values:
Number of Jobs

Note: 45 is recommended

11. SD Jobs Fail If Template Error

Function:
Causes S-Docs Jobs to fail if template-level errors occur (when the document generates successfully, but errors are present within the generated document)
Values:
Checked to enable

12. SD Jobs Move to Top of Flex Queue

Function:
Moves all S-Docs Jobs to the top of the queue above all other asynchronous jobs (Batch jobs, future callouts, etc.)
Values:
Checked to enable

Note: Checked is recommended

13. Salesforce Home URL

Function:
Modifies the template editor Insert Image button to add your base Salesforce URL to image URL paths. By default, only the relative URL path is used
Values:
Your Salesforce domain
E.g. https://na123.salesforce.com

14. Process Job Splitters Concurrently

Function:
Processes all queueable S-Docs Job Splitters concurrently

Note: This setting does not apply to DOC-NEW templates.
Values:
Checked to enable

15. Concurrent Master Wait Time

Function:
Sets the number of seconds between attempts to create files for S-Doc Jobs
Values:
Number of seconds

Note: The Concurrent Master Wait Time is 3 seconds by default

16. Send SDJobs Email as Future

Function:
Causes any emails sent through S-Docs Jobs to be sent through a future method (allowing generated documents to be attached to the email record)
Values:
Checked to enable

17. Disable Contact Record Queries For Email

Function:
Deprecated Setting
Values:
N/A

18. Don't Run SDTemplate Trigger

Function:
Prevents SDTemplate Trigger function (sets template encode values, etc.) from running when inserting/updating templates.
By default, this function is always run when templates are created or updated.
Values:
Checked to enable

19. SDTemplateEditor Page Size

Function:
Modifies the number of fields displayed at once in the template editor Insert Field, Insert Related List, and Insert Conditional Logic menus
Next and Prev buttons will appear below the field menus to switch between fields
Values:
Number of fields to display

20. Enable Create Salesforce Task Feature

Function:
Adds Create Salesforce Task tab to the S-Docs Template Editor, which allows you to configure S-Docs to create a Salesforce task when a document is generated
Values:
Checked to enable

21. Allow Templates With Error to Generate

Function:
Allows documents with template-level errors to generate (e.g. invalid formatting, nonexistent components, etc.)
By default, S-Docs will stop document generation if template-level errors are detected
Values:
Checked to enable

22. ConnectedAppAudienceURL

Note: This field should only be populated if you are using Salesforce Government Cloud.

Function:
Passes your Salesforce login URL to S-Docs for use with your S-Docs Connected App in Salesforce Government Cloud

Values:
Your Salesforce Login URL
Production: https://login.salesforce.com
Sandbox: https://test.salesforce.com

23. Use Legacy AWS S3 Spaces

Function:
Causes S-Docs to encode spaces in file names of documents uploaded to Amazon S3 with real spaces (legacy method).
By default, spaces are replaced with "+"
Values:
Checked to enable

24. Stabilize URLs Checked

Function:
Fixes broken images in Insert Image tool and allows DOC/DOC-NEW templates with Embed Images checked to generate.

This setting is only required for orgs with stabilized URLs for Visualforce, Experience Builder, Site.com Studio, and Content Files enabled.

Note: Stabilized URLs are automatically enabled in all new or refreshed Sandboxes, and will be enabled for all orgs in the Summer ‘22 release. View this Salesforce Help article for more information.
Values:
Checked to enable

25. Disable Contact Record Queries For Email

Function:
Disables queries S-Docs runs on the Contact object by default when the S-Docs Email page is loaded
Values:
Checked to enable

26. Use File Id For AWS Folders

Function:
Automatically includes the ContentDocument, ContentVersion, and/or Attachment IDs of the generated document in the folder file path for documents uploaded to Amazon S3 folders
Values:
Checked to enable

Was this helpful?