CaseCloud Help

HotDocs for Salesforce Integration Setup Guide

Updated on

This article explains how to set up the HotDocs Advance integration with Salesforce by using the CaseCloud HotDocs package.

After you complete the setup, users can launch a HotDocs interview directly from a Salesforce record. HotDocs then uses data from Salesforce to generate documents.

Before you begin

Before you start the setup, make sure you meet the following requirements.

Required roles

You must have access to both Salesforce and HotDocs Advance.

Salesforce System Administrator

You need this role to complete the following tasks:

  • Install the HotDocs Salesforce package
  • Configure Remote Site Settings
  • Configure the HotDocs Setup record
  • Assign permission sets
  • Modify object page layouts

HotDocs Site Administrator

You need this role to complete the following tasks:

  • Create API credentials
  • Configure the HotDocs API client
  • Create a service principal

Required information

Before you begin, make sure you have the following information available. 

ItemDescription
HotDocs Advance site URLThe URL for your HotDocs Advance site. 
Example: https://[your-site].hotdocsadvance.com
HotDocs package installation linkThe Salesforce package installation link provided by your account manager or CaseCloud Support.

Integration workflow

The integration connects Salesforce to HotDocs Advance by using HotDocs APIs. Administrators create API credentials in HotDocs Advance, which Salesforce uses to authenticate and exchange data securely.

Once connected, Salesforce sends record data to HotDocs Advance to populate interviews and generate documents.

The following steps describe how the integration works end to end:

Expand or collapse content Step 1: Set Up API credentials in HotDocs Advance

Salesforce uses API credentials to authenticate with HotDocs Advance. You create these credentials in the HotDocs Auth application.

Follow these instructions to set up API credentials in HotDocs Advance.

Expand or collapse content Step 2: Install the HotDocs Salesforce package

Install the HotDocs managed package in Salesforce to add the required components for the integration.

Install the package

  1. Open the HotDocs package installation link provided by your account manager or CaseCloud Support.
  2. Follow the Salesforce installation wizard.
  3. When prompted, select the users who should have access to the HotDocs components.
  4. Complete the installation.

After the installation completes, Salesforce adds the following components:

  • HotDocs Setup
  • HotDocs Document Templates
  • HotDocs Interview object
  • HotDocs permission sets

These components enable administrators to configure the integration and allow users to launch HotDocs interviews from Salesforce records.

Expand or collapse content Step 3: Assign HotDocs permissions

Users must have the appropriate permission set to access HotDocs features in Salesforce.

Available permission sets

The HotDocs package includes the following permission sets:

Permission setDescription
HotDocs AdminProvides full access to configure and manage the HotDocs integration
HotDocs UserAllows users to run interviews and generate documents

Assign a permission set

  1. In Salesforce, open Setup.
  2. Navigate to Users.
  3. Select a user record.
  4. Select Permission Set Assignments.
  5. Select Edit Assignments.
  6. Assign one of the following permission sets:
    • HotDocs Admin
    • HotDocs User
  7. Select Save.

Use a Permission Set Group to manage HotDocs permissions for multiple users more efficiently and consistently. For more details, follow this article.

Expand or collapse content Step 4: Create the Remote Site Setting

Salesforce must allow outbound API calls to HotDocs Advance. You do this by creating a Remote Site Setting.

Create the Remote Site Setting

  1. In Salesforce, open Setup.
  2. In the Quick Find box, search for Remote Site Settings.
  3. Select New Remote Site.
  4. Enter the following values:
Field Value
Remote Site NameHotDocs
Remote Site URLhttps://[your-site].hotdocsadvance.com
Active Enabled
  1. Select Save.

Make sure the Remote Site URL exactly matches your HotDocs Advance site URL. An incorrect URL can prevent Salesforce from connecting to HotDocs.

Expand or collapse content Step 5: Configure the HotDocs connection

Configure the Salesforce connection from the HotDocs Setup tab by entering the HotDocs API credentials.

Configure HotDocs settings

  1. In Salesforce, open the App Launcher.
  2. Search for HotDocs Setup.
  3. Open HotDocs Configuration.
  4. Select Edit.
  5. Enter the following API credential values:
Field Value
HotDocs Base URLhttps://[your-site].hotdocsadvance.com
API Client NameThe DisplayName from the HotDocs API client
Principal NameThe service principal name
Principal PasswordThe service principal password
  1. Select Save.
Expand or collapse content Step 6: Create a document template mapping

A HotDocs document template mapping links a published HotDocs template to a Salesforce object. This mapping defines how Salesforce data populates the HotDocs interview.

Create a template mapping

  1. In Salesforce, open the HotDocs Document Templates tab.
  2. Select New.
  3. Complete the following fields:
FieldDescription
NameA descriptive name for the template mapping
ObjectThe Salesforce object that provides data
Record TypeOptional. Select a record type if applicable
ActiveEnabled
Select HotDocs TemplateThe published HotDocs template
  1. Select Save.

Map template variables

After you save the template mapping, map Salesforce fields to HotDocs variables.

  1. Under Template Variable Mapping, select the Salesforce field that corresponds to each HotDocs variable.
  2. Configure related object mappings if the template requires data from related records.
  3. Select Save.

Make sure the HotDocs template is published and active before creating the mapping. Unpublished templates do not appear in the selection list.

Extend HotDocs to additional objects

You can enable HotDocs on any standard or custom Salesforce object. For more details, follow this article.

Configure HotDocs for a new object:

To support an additional object, complete the following tasks:

  1. Add a Lookup field on the HotDocs Interview object that references the new Salesforce object.
  2. Create a Launch Interview action for the object.
  3. Add the HotDocs Interview related list to the object’s page layout.
  4. Create a document template mapping for the object.
Expand or collapse content Step 7: Add the Launch Interview action

Users generate documents by selecting the Launch Interview action from a Salesforce record.

Create the action

  1. In Salesforce, open Setup.
  2. Go to Object Manager.
  3. Select the Salesforce object that you mapped to the HotDocs template.
  4. Open Buttons, Links, and Actions.
  5. Select New Action.
  6. Enter the following values:
FieldValue
Action TypeLightning Web Component
Lightning Web ComponenthotdocsInterviewRunAction
SubtypeScreen Action
LabelLaunch Interview
  1. Select Save.

Add the action to the page layout

After you create the action, add it to the object’s page layout so users can access it.

  1. In Object Manager, open Page Layouts.
  2. Select the page layout used by your target users.
  3. In the Salesforce Mobile and Lightning Experience Actions section, locate Launch Interview.
  4. Drag Launch Interview onto the page layout.
  5. Select Save.
Expand or collapse content Step 8: Test the integration

Verify that the integration works by generating a document from Salesforce.

Generate a test document

  1. Open a record for the Salesforce object that you configured.
  2. Select Launch Interview.
  3. Choose a document template.
  4. Complete the HotDocs interview.
  5. Generate the document.

The document is generated successfully, and an interview record appears in the HotDocs Interviews related list on the Salesforce record.

If the interview does not launch or the document fails to generate, verify that:

  • The user has the HotDocs User or HotDocs Admin permission set.
  • The document template mapping is active.
  • The HotDocs connection is configured correctly.

Upon successful configuration, users can launch HotDocs interviews and generate documents from records on the new Salesforce object.

Previous Article How to Extend HotDocs to Standard or Custom Objects
Next Article Release Notes (HD)
Still need help? Click here!
AdvoLogix® is a registered trademark of AdvoLogix.com LLC a Texas Limited Liability Company. All references to other trademarks belonging to third parties that appear on this website, documentation, or other materials shall be understood to refer to those registered trademarks owned by others, and not to any trademark belonging to AdvoLogix. Otherwise, all material herein is the copyright of AdvoLogix.com LLC. All Rights Reserved.