Category

S-Docs Install Config and Upgrade

S-Docs Permission Sets

By Documentation, S-Docs Install Config and Upgrade No Comments

Introduction

S-Docs provides permission sets that you can assign to your admins and users out of the box to ensure they have access to the necessary S-Docs/S-Sign objects. There are separate permission sets for S-Docs and S-Sign.

S-Docs Permission Sets

S-Docs comes with two permission sets: S-Docs User and S-Docs Administrator.

Permission Set Assign To
S-Docs User Users whose primary role involves only generating, viewing, emailing, or storing documents. Users can view S-Docs templates, but not modify them.
S-Docs Administrator Users whose primary role involves building templates or customizing S-Docs. Users have read, create, edit, and delete access on all S-Docs objects.

S-Sign Permission Sets

S-Sign comes with five permissions sets: S-Sign User, S-Sign Administrator, S-Sign Internal User, S-Sign Site Guest User, and S-Sign Experience Cloud Site.

Permission Set Assign To
S-Sign User Users whose primary role involves only sending and tracking e-signature requests. Users can view S-Sign templates, but not modify them.
S-Sign Administrator Users whose primary role involves building S-Sign templates. Users have read, create, edit, and delete access on all S-Sign objects.
S-Sign Internal User Your chosen S-Sign Internal User. This is a licensed Salesforce user through which all S-Sign operations will be conducted using the secure S-Docs Connected App. This permission set is requiredread more in the S-Sign configuration guide.
S-Sign Site Guest User The S-Sign Site Guest User. This permission set is required and will be assigned automatically when you complete step 5 of the S-Sign configuration guide.
S-Sign Experience Cloud Site Experience Cloud Site/Community Users.

The S-Docs Setup Tab

By Documentation, S-Docs Install Config and Upgrade No Comments

Introduction

The S-Docs Setup page provides quick access to a number of different S-Docs administrative settings. This article will describe the functionality of each section on this page.

Locate S-Docs Setup

To navigate to the S-Docs Setup page, click the App Launcher in the upper left corner, type "S-Docs" into the search field, then click S-Docs Setup.

S-Docs Setup Sections

This article will now go over each section of the S-Docs setup page in detail.

S-Sign Setup

The S-Sign Setup section appears as follows.

[1] Go To S-Sign Setup Page: This button routes to the S-Sign Configuration Page, which contains a number of administrative configuration options for S-Sign including Salesforce Site information, email notification options, Guest User licensing, and more. Click here to learn more about the S-Sign Configuration Page.

[2] Go To S-Sign License Key Page: This button routes to the S-Sign License Key Page, where you can input and update your S-Sign license key and assign/remove user licenses. Click here to learn more about the S-Sign License Key Page.

S-Docs License Key

The S-Docs License Key section appears as follows.

Go To S-Docs License Key Page: This buttons routes to the S-Docs License Key Page, where you can input and update your S-Docs license key. Click here to learn more about installing S-Docs license keys and assigning licenses.

Migrate S-Docs & S-Sign Templates

The Migrate S-Docs & S-Sign Templates section appears as follows.

Go To S-Docs Migration Page: This button routes to the S-Docs Template Migrator, which allows you to import or export S-Docs templates between different Salesforce orgs. Click here to learn more about the S-Docs Template Migrator.

Translate UI

The Translate UI section appears as follows.

[1] Go To S-Docs UI Translation Page: This button routes to the S-Docs UI Translation Page, which allows you to create your own translations for the S-Docs end-user experience. Click here to learn more about the S-Docs UI Translation Page.

Note: For more information about translation options for S-Docs, click here.

[2] Go To S-Sign UI Translation Page: This button routes to the S-Sign UI Translation Page, which allows you to translate the S-Sign end-user experience. Click here to learn more about the S-Sign UI Translation Page.

Other Pages

The Other Pages section appears as follows.

[1] Go To Google Drive Integration Page: This button routes to the Google Drive Authentication Page. For full instructions on configuring the S-Docs & Google Drive integration, click here.

[2] Go To AWS S3 Integration Page: This button routes to the Amazon S3 Configuration Page. For full instructions on configuring the S-Docs & AWS integration, click here.

[3] Go To SendGrid Integration Page: This button routes to the SendGrid Configuration Page. This page allows you to enter your SendGrid API key for secure emailing.

[4] Go To Bulk DOCX Upload Page: This button routes to the Bulk DOCX Upload Page, which allows you to bulk-upload DOCX files and create an S-Docs template for each file. To learn more about the Bulk DOCX Upload page, click here.

Other Settings

The Other Settings section appears as follows.

[1] Whitelisted Profiles for Document Editing: This field allows you to list user profiles that should have access to the Live Edit feature (enabled for all users by default). Click here to learn more about this field.

[2] Do Not Include Extensions in File Names: When you check this box, S-Docs saved as Salesforce Files will not include the file extension name in the File's Title field.

[3] Update Settings: Click this button to update the settings in this section.


Install & Renew Your S-Docs License Key

By Documentation, S-Docs Install Config and Upgrade No Comments

Introduction

If you've just purchased S-Docs or initiated a trial period, you will be provided with a unique S-Docs license key that will allow you to begin taking advantage of S-Docs's robust feature functionality. This article demonstrates how to install your license key, assign S-Docs licenses to your users, and update or renew your license key.

License keys are required for any version of S-Docs above the free version. You can watch the following tutorial video or refer to the written instructions below the video. Timestamps from the video are provided in the written instructions.

Note: Click Here for instructions on installing & configuring S-Docs itself.

Tutorial Video

Written Instructions

Step 1: Install Your S-Docs License Key [0:34]

Step 1 is to install your S-Docs license key into your Salesforce org.

Note: This step differs depending on which version of S-Docs you're using. If you're using version 4.381 and above, follow instructions in Step 1A. If you're using version 4.380 or below, follow instructions in Step 1B.

Step 1A

Navigate to the S-Docs Setup page by clicking the App Launcher in the upper left corner, then clicking View All.

Scroll down to the All Items section, then click S-Docs Setup.

From the S-Docs Setup page, find the S-Docs License Key section and click Go To S-Docs License Key Page.

From there, you can enter your license key into the provided field. You can also navigate back to this page to update your license key in the future.

Step 1B

In S-Docs version 4.380 and below, installing your license key is a simple matter of creating a new template and pasting your key into it.

Navigate to the S-Docs homepage by clicking on the App Launcher in the upper left corner, typing S-Docs into the search bar, and clicking S-Docs.

Click over to the S-Docs Templates tab, then click New to create a new template.

Fill in the following information for your template:

Template Name: License Key
Description: [Leave this blank]
Document Category: None
Related To Type: Opportunity
Template Format: PDF
Document Version: [Paste License Key Here]

Available For Use: [Unchecked]
Initially Visible: [Unchecked]
Allow Edit: [Unchecked]

Once you click Save, the Description field of your template will be updated to say "DO NOT REMOVE OR EDIT THIS RECORD," and the Document Version field will be updated to "***KEY ACCEPTED***." You've successfully installed your S-Docs license key!

Step 2: Assign S-Docs Licenses To Your Users [1:43]

Note: If you are installing your S-Docs license key in a sandbox environment, you can skip this step. License seats do not need to be assigned in sandboxes.

Now that you've created your S-Docs license key, you need to grant yourself and your users access to S-Docs by assigning S-Docs licenses to the appropriate users.

Navigate to the Setup menu by clicking the cog in the upper right corner. Then, type Installed Packages into the Quick Find bar, and click Installed Packages in the drop-down menu.

A list of your installed packages will appear on the right. Find the S-Docs package and click manage licenses.

This will open up the package manager for S-Docs. On this page, you can view [1] the number of licenses that you've purchased, [2] the number of licenses that you've assigned, and [3] each user who has been assigned a license. Click Add Users [4] to start assigning licenses.

Use the checkboxes to assign licenses to yourself and your users. Once you're done, click Add at the bottom of the screen.

As you can see, the users that were selected have been added to the Licensed Users list, and the Used Licenses field has been updated to reflect this.

You can now begin generating unlimited templates and taking advantage of all S-Docs has to offer.

Note: You don't have to assign all of your available licenses at this time. You can come back to add or remove users at any time.

Renewing / Updating Your S-Docs License Key [2:23]

If you're renewing your S-Docs account or upgrading from a trial version, you'll need to update your license key.

Note: For S-Docs version 4.381 and above, you can simply navigate back to the S-Docs License Key page described in Step 1A to update your license key.

For S-Docs version 4.380 and below, you will need to update your license key template. Do not create a new license key template; to upgrade, all you need to do is edit your original template and replace your old key with your new one. Use the search bar on the S-Docs templates page to quickly find your original license key template.

Click Edit, then delete the text in the Document Version field and replace it with your new license key.

Once you click Save, the Document Version field will once again display the text "***KEY ACCEPTED***." Your license key is now updated; that's all there is to it!


S-Docs Quick Install & Configuration Guide – Salesforce Lightning

By Documentation, S-Docs Install Config and Upgrade No Comments

Video Tutorial

Some invisible text

Step 1: Install S-Docs

This quick installation & basic configuration guide will teach you how to install S-Docs and create & email a custom document in Salesforce Lightning Experience. To view this article for Salesforce Classic, click here.

Note: You should download and install the S-Docs package into a SANDBOX or DEVELOPER organization. We strongly advise against installing it into any production org without proper testing.

1. Navigate to our Salesforce AppExchange listing and click Get it Now.

2. You will be prompted to log into your Salesforce org.

3. Once you are logged in, you'll be given the option to install S-Docs in your production org or a sandbox instance. We highly recommend testing in a sandbox instance before installing in your production org.

4. Confirm your profile details, agree to the terms and conditions, and click Confirm and Install.

5. You'll then see the following screen. Make sure to select Install for All Users and then click Install.

Congratulations! S-Docs is now installed in your org.

We recommend assigning the S-Docs User or Administrator permission sets to yourself and users who will be interacting with S-Docs. Learn more about S-Docs permission sets here.

Step 2: Add An S-Docs Button To Your Object’s Page Layout

This section details setting up your S-Docs button for a standard object in Salesforce Lightning. This button will initiate the template selection and document generation processes. Although the setups are fairly similar, please reference this documentation for information regarding S-Docs in Salesforce Classic, and please refer to this documentation for more information on setting up S-Docs with a custom object.

The S-Docs button comes pre-created for the following standard objects: Contract, Opportunity, Account, Contact, Lead, Task, and Event. If you're setting up S-Docs for these objects, you only need to add the button to your page layout. However, if you plan to customize the functionality of your button with apex parameters, you should create a new button so that you can edit it in the future. For other standard objects, you will need to create a new custom button.

In this example, we will be creating the S-Docs button for the Opportunity object. From the setup menu, navigate to the Object Manager, and click the object you're creating the button for.

Click Buttons, Links, and Actions in the sidebar, then click New Button or Link.

Enter the following information for your button:
Button Label & Name: Choose a name. We'll name our button "S-Docs."
Description: Optionally enter a description, such as "Create documents for this object."
Display Type: Detail Page Button
Behavior: Display in existing window without sidebar or header
Content Source: URL
Button URL:

{!URLFOR('/apex/SDOC__SDCreate1', null,[id=Opportunity.Id, Object='Opportunity'])}

Note: Be sure to change both instances of "Opportunity" with the name of your object in your button URL.

Note: To read about how you can customize this button to allow for one or zero click automation, click here.

Additional Note: If you encounter problems with your S-Docs button in lightning, add the lightningnav='true' parameter to your button URL. This step usually isn't necessary, but it can fix problems in lightning should they arise.

{!URLFOR('/apex/SDOC__SDCreate1', null,[id=Opportunity.Id, Object='Opportunity', lightningnav='true'])}

Add Your S-Docs Button to Your Object Page Layout

Once you save this button, you'll need to add it to the detail page layout for your object. Click Page Layouts in the sidebar of the object manager for your object. Click the arrow at the left of your page layout, then click Edit.

Click Mobile & Lightning Actions in the sidebar menu. The S-Docs button that you just created will appear in the menu of available mobile & lightning actions. Click and drag it into the "Salesforce Mobile and Lightning Experience Actions" section. Click Save when done.

Add The S-Docs Related List To Your Object Page Layout

Additionally, you should add an S-Docs Related List to your page by clicking Related Lists and dragging the S-Docs box down into the Related Lists table.

The S-Docs Related List on a given record should display all of the S-Docs ever generated for that record, as well as options to download and email those documents again. In order to display this, we need to add these columns to our Related List. Click the wrench icon on the S-Docs related list.

We recommend adding the following columns: View, Edit, Email, Doc Number, Name, Status, Doc Created On. These will display as columns from left to right on your related list (where top=left and bottom=right). To add a column, click on the column you want to add and then click the triangle button below "Add."

Additionally, we recommend sorting by Doc Created On descending.

Click OK once you’ve added all of your fields. The related list will appear as follows on a particular record’s page.

Note: Each time you edit an S-Docs template record with Auto Create Salesforce Attachment and link to record unchecked, the documents on the related list will change to reflect those edits. The related list will not store documents generated from previous versions of your templates, but rather generate a new document reflecting the most recent version of your template each time you view or email a document in this list.

Step 3:  Configure Your First Template

In order to start using S-Docs, you need to configure and activate at least one template. Start by navigating to the S-Docs templates page by clicking on the App Launcher in the upper left corner, typing S-Docs into the search bar, and clicking the S-Docs app.

Click over to the S-Docs Templates tab. This page is where all of your templates will appear. To create a new template, click New.

This is the template creation page. In this example, we will create an invoice template for the Opportunity object. Each field is explained below the screenshot.

Template Name: Enter a template name. This field is required.
Description: Optionally add a description. You should include any keywords that will be useful when searching for this template, because this field and the name field are searched during the template selection step. End users will see this when they are selecting templates.
Document Category: Optionally chose a category from the picklist. Templates can be grouped together so that a user can browse templates using a category picklist. If needed, you can later customize this picklist.
Related to Type: Pick an object from the picklist. This is the base or primary object this template will use. If needed, you can customize this list with your custom objectsThis field is required.
Template Format: Pick an output format. To support the same document in multiple formats, simply clone the template with a different "Format" field value. This field is required.
Document Version: Optionally use this field to track any internally used version number (or date) for this template. This is only for reference purposes.
Available for Use: Keep this box checked (it is checked by default). This ensures that the template is visible for document creation.
Initially Visible: Keeping this box checked (it is checked by default) will make this template visible on initial load of the document creation page based on the object type. Typically, you want to set this checkbox for the 10 most used templates for each object type.
Allow Edit: If you want users to be able to edit this document after it has been generated, check this box. Learn more about this feature.

Once you've filled in all of the values to your specifications, click Save. The template is now ready to be edited.

Utilize the Template Editor

Click the arrow on the left of the template detail page to show more buttons, then click the Template Editor button to design your template.

This is a very basic overview of the template editor. For a more in-depth explanation, click here.

This is the WYSIWYG template editor (What You See Is What You Get). Add some text, place the cursor where you want your Salesforce record data to be merged into the template, and then click on the Insert field button.

Select the field from the object you want to insert and click Insert.  The editor will add the merge field in the correct syntax into the template editor.

Repeat the above step for other fields.  In addition, you can add related lists and insert conditional logic. You can also use the editor tools to modify the document formatting. Or, click Source to view the HTML and add your own styles; the customization options are endless! Click Save when done.

You have now created your first template!

Note: You can also insert images, span related objects and create child object line items and add CSS stylesheets. Click here for an in-depth explanation of the template editor, or click here to read about advanced template editor features.

Step 4: Generate And Email Your First Document

Open any record for your object and click the S-Docs button you just created.

The template you created earlier will appear. (If it doesn't, make sure you’ve checked the Available for Use and the Initially Visible checkboxes when you created your template. Additionally, make sure you set "Related to Type" to the object you're using.) Select the template and click Next Step.

The document will generate in seconds. You can click on the "View" icon or the document number to view or download your document, or click the pencil icon to edit your document (this option is only available if Allow Edit has been checked on the template record). Click Email Selected Docs to bring up the email page for emailing the document.

You can edit all of the normal email fields on the email page, as well as the body of the email itself. The document you just generated is automatically added as an attachment to the email. To learn more about how to create custom email templates that automatically fill these fields in for you, click here.

Click Send when done. You have now created and emailed your first document with S-Docs!

Email Failure Troubleshooting

By default, S-Docs links outbound emails to the contact record with a matching email address; Salesforce requires this linkage. If you try to send an email to an email address that is not listed under any Contact record in your org, S-Docs will attempt to link it to a single dummy contact record called "No Contact Record." This contact record is created automatically by the S-Docs package to handle this linkage, and is immediately deleted once the email is sent.

If your org has implemented validation rules that require additional contact fields to be completed, then the S-Docs package will not be able to create this contact record. In this case, there are two main options.

Option 1 (Recommended)

Create a before insert, before update Apex trigger on the Contact object that automatically changes the fields on the No Contact Record that S-Docs creates so that your validation rules are not triggered. For example, the trigger might look like this if your validation rules prevent the contact field "This_Cannot_Be_Null__c" from being null:

trigger ContactFirstName on Contact (before insert, before update) {
    for (Contact c : trigger.new) {
        if (c.LastName == 'No Contact Record') {
            c.This_Cannot_Be_Null__c = 'some non-null value';
        }
    }
}

With this option, S-Docs will be able to create and delete the No Contact Record, and the email will be sent and logged in Activity History on the base object record.

If you require test coverage for your No Contact trigger, you can use the following test class:

Class Name: NoContactTestClass

@isTest
private class NoContactTestClass {    @isTest
    public static void noContactTest() {
    	Test.startTest();
        Contact testContact = new Contact();
        testContact.LastName = 'No Contact Record';
        insert testContact;
        Test.stopTest();
    }}

Option 2

Create the S-Docs No Contact Record manually with all of the fields filled in that are required by your validation rules. The fields that S-Docs requires should be filled in as follows:
First Name: Not Required. We recommend writing S-Docs to avoid confusion.
Last Name: No Contact Record
Email Address: this.email@is.invalid
You then need to add the following parameter to the end of your S-Docs button: &useExistingNoContactRecord=true
Note: This option is not recommended, as the email will not be logged in Activity History on the base object record.

Sandbox Deliverability

If you are testing S-Docs in a sandbox org and emails are not being delivered, you should check Setup > Email Administration > Deliverability, and check that "Access to Send Email" is set to "All email." By default, Salesforce turns off outbound email access when a sandbox is created to reduce the risk of inadvertently sending emails to contacts during development and testing. Be aware that this change effects the entire sandbox and not just S-Docs.


S-Docs Quick Install & Configuration Guide

By Documentation, S-Docs Install Config and Upgrade No Comments

Step 1: Install S-Docs

This quick installation & basic configuration guide will teach you how to install S-Docs and create & email a custom document in Salesforce Classic. To view this article for Salesforce Lightning Experience, click here.

Note: You should download and install the S-Docs package into a SANDBOX or DEVELOPER organization. We strongly advise against installing it into any production org without proper testing.

You can watch the video above or follow the instructions below to install S-Docs.

1. Navigate to our Salesforce AppExchange listing and click Get it Now.

2. You will be prompted to log into your Salesforce org.

3. Once you are logged in, you'll be given the option to install S-Docs in your production org or a sandbox instance. We highly recommend testing in a sandbox instance before installing in your production org.

4. Confirm your profile details, agree to the terms and conditions, and click Confirm and Install.

5. You'll then see the following screen. Make sure to select Install for All Users and then click Install.

Congratulations! S-Docs is now installed in your org.

We recommend assigning the S-Docs User or Administrator permission sets to yourself and users who will be interacting with S-Docs. Learn more about S-Docs permission sets here.

Step 2: Create the S-Docs Button and Add it to Your Object’s Page Layout

This section details setting up your S-Docs button for a standard object in Salesforce Classic. This button will initiate the template selection and document generation processes. Although the setups are fairly similar, please reference this documentation for information regarding S-Docs in Salesforce Lightning, and please refer to this documentation for information on setting up S-Docs with a custom object.

The S-Docs button comes pre-created for the following standard objects: Contract, Opportunity, Account, Contact, Lead, Task, and Event. If you're setting up S-Docs for these objects, you only need to add the button to your page layout. However, if you plan to customize the functionality of your button with apex parameters, you should create a new button so that you can edit it in the future. For other standard objects, you will need to create a new custom button.

In this example, we will be creating the S-Docs button for the Opportunity object.

Navigate to Setup > Build > Customize > Opportunities > Buttons, Links, and Actions.

Click New Button or Link to add a new button.

Fill in the following information for your button.

Button Label & Name: Choose a name. We'll name our button "S-Docs."
Description: Optionally enter a description, such as "Create documents for this object."
Display Type: Detail Page Button
Behavior: Display in existing window without sidebar or header
Content Source: URL
Button URL:

{!URLFOR('/apex/SDOC__SDCreate1', null,[id=Opportunity.Id, Object='Opportunity'])}

Note: Be sure to replace both instances of "Opportunity" with the API name of your object in this URL.

To read about how you can customize this button to allow for one or zero click automation, click here.

Add Your S-Docs Button To Your Page Layout

Once you save this button, you'll need to add it to the detail page layout for your object. Navigate to an object record and click Edit Layout.

Click Buttons in the top menu. The S-Docs button that you just created will appear in this menu. Click and drag it into the Custom Buttons area in the Opportunity Detail section. Click Save when done.

Add The S-Docs Related List To Your Page Layout

Additionally, you should add an S-Docs Related List to your page by clicking Related Lists and dragging the S-Docs box down into the Related Lists section.

The S-Docs Related List on a given record should display all of the S-Docs ever generated for that record, as well as options to download and email those documents again. In order to display this, we need to add these columns to our Related List. Click the wrench icon on the S-Docs related list.

We recommend adding the following columns: View, Edit, Email, Doc Number, Name, Status, Doc Created On. These will display as columns from left to right on your related list (where top=left and bottom=right). To add a column, click on the column you want to add and then click the triangle button below "Add."

Additionally, we recommend sorting by Doc Created On descending.

Click OK once you’ve added all of your fields. The related list will appear as follows on a particular record’s page.

Note: Each time you edit an S-Doc template record with Auto Create Salesforce Attachment and link to record unchecked, the documents on the related list will change to reflect those edits. The related list will not store documents generated from previous versions of your templates, but rather generate a new document reflecting the most recent version of your template each time you view or email a document in this list.

Step 3:  Configure Your First Template

In order to start using S-Docs, you need to configure and activate at least one template. Start by navigating to the S-Docs templates page by clicking All Tabs ("+" sign), scrolling down, and clicking S-Docs Templates.

This page is where all of your templates will appear. To create a new template, click New.

This is the template creation page. In this example, we will create an invoice template for the Opportunity object. Each field is explained below the screenshot.

Template Name: Enter a template name. This field is required.
Description: Optionally add a description. You should include any keywords that will be useful when searching for this template, because this field and the name field are searched during the template selection step. End users will see this when they are selecting templates.
Document Category: Optionally chose a category from the picklist. Templates can be grouped together so that a user can browse templates using a category picklist. If needed, you can later customize this picklist.
Related to Type: Pick an object from the picklist. This is the base or primary object this template will use. If needed, you can customize this list with your custom objectsThis field is required.
Template Format: Pick an output format. To support the same document in multiple formats, simply clone the template with a different "Format" field value. This field is required.
Document Version: Optionally use this field to track any internally used version number (or date) for this template. This is only for reference purposes.
Available for Use: Keep this box checked (it is checked by default). This ensures that the template is visible for document creation.
Initially Visible: Keeping this box checked (it is checked by default) will make this template visible on initial load of the document creation page based on the object type. Typically, you want to set this checkbox for the 10 most used templates for each object type.
Allow Edit: If you want users to be able to edit this document after it has been generated, check this box. Learn more about this feature.

Once you've filled in all of the values to your specifications, click Save. The template is now ready to be edited.

Utilize the Template Editor

Once you've filled in all of the values to your specifications, click Save. The template is now ready to be edited. Click the Template Editor button to design your template.

Note: This is a very basic overview of the template editor. For a more in-depth explanation,
click here.

This is the WYSIWYG template editor (What You See Is What You Get). Add some text, place the cursor where you want your Salesforce record data to be merged into the template, and then click on the Insert field button.

Select the field from the object you want to insert and click Insert.  The editor will add the merge field in the correct syntax into the template editor.

Repeat the above step for other fields.  In addition, you can add related lists and insert conditional logic. You can also use the editor tools to modify the document formatting. Or, click Source to view the HTML and add your own styles; the customization options are endless! Click Save when done.

You have now created your first template!

Note: You can also insert images, span related objects and create child object line items and add CSS stylesheets. Click here for an in-depth explanation of the template editor, or click here to read about advanced template editor features.

Step 4: Generate And Email Your First Document

Open any record for your object and click the S-Docs button you just created.

The template you created earlier will appear. (If it doesn't, make sure you’ve checked the Available for Use and the Initially Visible checkboxes when you created your template. Additionally, make sure you set "Related to Type" to the object you're using.) Select the template and click Next Step.

The document will generate in seconds. You can click on the "View" icon or the document number to view or download your document, or click the pencil icon to edit your document (this option is only available if Allow Edit has been checked on the template record). Click Email Selected Docs to bring up the email page for emailing the document.

You can edit all of the normal email fields on the email page, as well as the body of the email itself. The document you just generated is automatically added as an attachment to the email. To learn more about how to create custom email templates that automatically fill these fields in for you, click here.

Click Send when done. You have now created and emailed your first document with S-Docs!

Email Failure Troubleshooting

By default, S-Docs links outbound emails to the contact record with a matching email address; Salesforce requires this linkage. If you try to send an email to an email address that is not listed under any Contact record in your org, S-Docs will attempt to link it to a single dummy contact record called "No Contact Record." This contact record is created automatically by the S-Docs package to handle this linkage, and is immediately deleted once the email is sent.

If your org has implemented validation rules that require additional contact fields to be completed, then the S-Docs package will not be able to create this contact record. In this case, there are two main options.

Option 1 (Recommended)

Create a before insert, before update Apex trigger on the Contact object that automatically changes the fields on the No Contact Record that S-Docs creates so that your validation rules are not triggered. For example, the trigger might look like this if your validation rules prevent the contact field "This_Cannot_Be_Null__c" from being null:

trigger ContactFirstName on Contact (before insert, before update) {
    for (Contact c : trigger.new) {
        if (c.LastName == 'No Contact Record') {
            c.This_Cannot_Be_Null__c = 'some non-null value';
        }
    }
}

With this option, S-Docs will be able to create and delete the No Contact Record, and the email will be sent and logged in Activity History on the base object record.

If you require test coverage for your No Contact trigger, you can use the following test class:

Class Name: NoContactTestClass

@isTest
private class NoContactTestClass {    @isTest
    public static void noContactTest() {
    	Test.startTest();
        Contact testContact = new Contact();
        testContact.LastName = 'No Contact Record';
        insert testContact;
        Test.stopTest();
    }}

Option 2

Create the S-Docs No Contact Record manually with all of the fields filled in that are required by your validation rules. The fields that S-Docs requires should be filled in as follows:
First Name: Not Required. We recommend writing S-Docs to avoid confusion.
Last Name: No Contact Record
Email Address: this.email@is.invalid
You then need to add the following parameter to the end of your S-Docs button: &useExistingNoContactRecord=true
Note: This option is not recommended, as the email will not be logged in Activity History on the base object record.

Sandbox Deliverability

If you are testing S-Docs in a sandbox org and emails are not being delivered, you should check Setup > Email Administration > Deliverability, and check that "Access to Send Email" is set to "All email." By default, Salesforce turns off outbound email access when a sandbox is created to reduce the risk of inadvertently sending emails to contacts during development and testing. Be aware that this change effects the entire sandbox and not just S-Docs.


Upgrading S-Docs to the Latest Version

By Documentation, S-Docs Install Config and Upgrade No Comments

Introduction

Upgrading S-Docs to the latest version is essential in keeping up-to-date with new features, bug fixes, and more. When you upgrade to the newest version of S-Docs, all of your templates and documents generated with the previous versions will remain, resulting in a seamless transition to the latest package. The latest version of S-Docs should be downloaded from the Salesforce AppExchange.

Upgrading is quick and easy; simply follow these steps:

Note: Do not uninstall the current version!

Step 1 (Strongly recommended): Test In Sandbox

Download and test the newest version of S-Docs in one of your organization's sandboxes before upgrading your production org to the newest version. This is critical in ensuring that upgrading to the latest version of S-Docs does not result in any unintended consequences.

 Step 2: Download In Production

Download and install the newest version of S-Docs to your production org. Make sure to select Install for All Users.

Step 3: Update Page Layouts

You may need to update your page layouts and related list columns to include the latest fields from S-Docs; find out if there are any new fields, whether those fields are included on your page layouts and related list columns, and perform any necessary updates to page layouts and related list columns in order to include any missing fields. You can read about the latest product updates in our release notes.

For example, suppose your S-Doc template record pages are missing the S-Docs “Allow Edit” field. First, you would make sure that the latest version of S-Docs has been installed to your org. Then, you would navigate to the Object Manager in Setup. After finding and clicking on your object, you would navigate to the Page Layouts tab, then click Edit for the appropriate page layout. (In Salesforce classic, you would simply go to the record detail page for any S-Doc template and click Edit Layout).

Finally, find “Allow Edit” under the Fields tab and drag it to the area containing the other fields currently in your page layout. Click Save to finish.


That’s it! The “Allow Edit” field would then appear on all of your S-Docs template records; you do not need to repeat this process for other template records.


Top