DocGen & eSign

Admin Guide

Overview

This guide provides an overview of DocGen & eSign, a Salesforce-native solution for generating documents, managing electronic signatures, and securely handling completed documents. It explains the intended users, prerequisites, installation options, and post-installation configuration required to enable licensing, permissions, Salesforce Site access, signing workflows, custom settings, document actions, and workflow status tracking. The guide also links to additional instructions for creating templates, mapping Salesforce fields, configuring signers, and organizing templates into folders.

Introduction

DocGen & eSign is essentially a Salesforce-native document automation and electronic signature solution that lets your Salesforce org generate documents using Salesforce data, send them for electronic signatures, apply digital signatures and document sealing, and securely manage completed documents — all without manually creating, exchanging, or tracking documents outside Salesforce.

Click here to discover the full range of features offered by the DocGen & eSign.


Intended Users

  • Salesforce Admins – Responsible for setup and configuration.

  • End Users – Business users who make create signing links or generate documents.

  • Developers – Those integrating with external systems.


Prerequisites

System Requirements

Salesforce Professional, Enterprise, Unlimited, or Developer Edition

User Roles & Permissions

Admin Access – Required for installation and configuration


Installation

4.1 Using Salesforce AppExchange
  1. Go to Salesforce AppExchange

  2. Search for Bank Connect

  3. Click "Get It Now" and select the Salesforce environment (Production or Sandbox)

  4. Follow the on-screen prompts to install the package

  5. Assign user permissions during the installation process

4.2 Using Direct Package Link
  1. Reach out to support@cloudmaveninc.com for the latest managed package link.

  2. Follow the on-screen prompts to install the package.

  3. Assign user permissions during the installation process.


Post-Installation Setup

5.1 Assign the License to the intended users

Every user must be assigned a user license to access the App cmDocs - Document Generation and eSign . A user's license determines the baseline of features that the user can access.

  1. Navigate to Setup.

  2. Use the Quick Find or Search Setup box to search for and select the specific user requiring the cmDocs - Document Generation and eSign license.

  3. Click on the user's name to access their detailed user record.

  4. Scroll down the user detail page to locate the "Managed Packages" related list.

  5. Click the "Assign Licenses" button associated with the "Managed Packages" section.

Screenshot 2025-03-24 at 5.04.52 PM.png
  1. Click the "Add" button to assign the selected "cmDocs - Document Generation and eSign" license to the user.

Screenshot 2025-03-24 at 5.14.36 PM.png

5.2 Assign the Required Permission Set

Permission Set is assigned to users to grant additional permissions or functionality beyond their existing profile settings.

  1. Navigate to Setup.

  2. Use the Quick Find box to search for "Permission Set".

  3. Locate the "Cloud Maven - cmDocs - Document Generation and eSign – Admin" permission set from the list.

  4. Click on "Manage Assignments".

  5. Assign the permission set to the relevant users.

11.jpg

5.3 Create a Salesforce Site

A Salesforce Site is required to securely expose specific Salesforce data and functionality through a custom web interface. It grants limited access to Site Guest Users, allowing them only to view or edit permitted data and complete actions such as signing documents electronically.

  1. Navigate to Setup.

  2. Use the Quick Find box to search for "Site".

  3. Click "New" to create a Salesforce Site.

  4. Enter all required details as depicted in the provided image.

  5. Click "Save".

23.jpg

5.4 Grant App License to Site Guest User

  1. In Setup, use the global search bar to locate "<<Site Name>> Site Guest User". (Replace <<Site Name>> with the name of the site created in step 5.2.)

12.jpg
Search the Site Name.
  1. Click on the "<<Site Name>> Site Guest User" from the list.

  2. Scroll down the user detail page to locate the "Managed Packages" related list.

  3. Click the "Assign Licenses" button associated with the "Managed Packages" section.

  4. Click the "Add" button to assign the selected "cmDocs - Document Generation and eSign" license to the user.

    Screenshot 2025-03-24 at 5.14.36 PM.png

5.5 Grant Required Access to the Site Guest User

Navigate to Site Guest User Profile.

13.jpg
Navigate to the profile

5.6 Provide access to the following Apex Classes

  1. Open the Profile of the Site Guest User.

  2. Assign access to the following Apex Classes:

    • docgen_esign.AutoPopulatedSigningScreenController

    • docgen_esign.SigningScreenController

    • docgen_esign.UtilityClass

14.jpg

5.7 Grant Access to Required Visualforce Pages

  1. Stay in the Site Guest User Profile.

  2. Provide access to the following Visualforce pages:

    • docgen_esign.AutoPopulatedSigningScreen

    • docgen_esign.PDFESigningScreen

    • docgen_esign.PDFSigningScreen

5.8 Configure Custom Settings

  1. Navigate to Setup → Use Quick Find to search for "Custom Settings".

  2. Click on "Manage", then select "cmDocs - Document Generation and eSign Configuration".

  3. Edit the following fields:

    • Logo URL: Add the desired logo URL.

    • Organization URL: Enter the organization’s domain (Lightning Domain ).

    • Signing Link: Add the newly created Site URL followed by ?sign=.

    • Visualforce URL: Contact the Cloud Maven team at setup@cloudmaveninc.com for this value.

    • Legal_Email_Address: Add a legal email address (or any preferred address) that will be displayed in the Electronic Record and Signature Disclosure.

17.jpg
You must replace the values as per your desired requirements and branding.

5.9 Add the ‘Generate Document’ Action

The administrator must add the action button, enabling users to easily generate documents and send them for signature with a single click.

  1. Navigate to Object Manager → Select the Source Object.

  2. Click on "Buttons, Links, and Actions".

  3. Click "New Action", then enter the required details.

  4. Add the "Generate Document" button to the "Mobile & Lightning Actions" section of the Page Layout. Enter the details as shown in the screenshot below. Users can specify an alternate name for the action according to their requirements.

  5. Add the button to the desired page layout or assign it an appropriate Lightning action name.

18.jpg
The administrator must add the action button.
24.jpg
Users can specify an alternate name for the action according to their requirements. Select the Lightning Web Component mentioned above from the dropdown list.
19.jpg
Add the button to the desired page layout or assign it an appropriate Lightning action name.

5.10 Add the Document Workflow Status LWC on the Record Page

  1. Navigate to the record page → Click the ⚙️ Gear icon → Select Edit Page.

Screenshot 2025-04-08 at 11.13.01 PM.png
  1. In the Component Search box, search for documentWorkFlowIndex.

Screenshot 2025-04-08 at 11.15.12 PM.png
  1. Then, drag and drop the documentWorkFlowIndex Lightning Web Component (LWC) to your desired location on the page layout.

    Screenshot 2025-04-08 at 11.17.19 PM.png


  1. Click Save in the top right corner.If this is a new layout or not yet activated, click Activate.

Screenshot 2025-04-08 at 11.23.26 PM.png

5.11 Enter License and Key Information

You can skip this step in trial ORGs

Execute the below code in the developer console anonymous window.

Java
String sEnvironment = '<<< YOUR Environment >>>';
String siteLicenseKey = '<<< YOUR Site License Key >>>';
String vfPageKey = '<<< YOUR Vf Page License Key >>>';
String privateKey = '<<< YOUR  Private Key >>>';
docgen_esign.AdminServices.saveDocGenCredentials(sEnvironment, privateKey, siteLicenseKey, vfPageKey);

Please contact the setup@cloudmaveninc.com team to get your license key information.


How to create Document Templates

Learn how to create and manage document templates for efficient e-signature workflows.

Creating a Document Template


How to Map Salesforce Object Fields to Document Templates

Learn how to map Salesforce object fields to document templates for accurate, data-driven document generation.

https://cloudmaven.atlassian.net/wiki/x/LIB1gQ


Configuring Document Signers

Learn how to configure and assign document signers using Salesforce and related records.

https://cloudmaven.atlassian.net/wiki/x/DgB5gQ


Schedule Automated Reminder Email for Signers

Learn how to configure and schedule a batch process to automatically send reminder emails for documents with pending signatures.

https://cloudmaven.atlassian.net/wiki/x/SoD1gQ


Enable Template Grouping into Folders

Organize document templates into folders for easier management and access.

Enable Template Grouping into Folders