DocGen & eSign

How to Schedule Automated Reminder Emails Batch

Overview

This guide explains how administrators can configure and manage the automated reminder process for documents that are still pending signature. It covers the required system configuration, reminder settings, document template configuration, and batch execution steps needed to automatically identify pending signing requests and send reminder emails to the appropriate signers at scheduled intervals.


Configure the Document Workflow Status

  1. Go to DocGen & eSign Logs.

  2. Open the Status field.

  3. Add Failed as a new picklist value.

  4. Save the changes.


Configure Reminder Settings

Go to Setup → Custom Settings → DocGen & eSign Configuration and configure the following settings:

Setting

Description

Reminder_Email_Next_Run_Time

Specifies when the reminder batch should run next, based on the configured reminder interval.

Reminder_Batch_Size

Specifies the number of records processed in each batch execution.

Reminder_Batch_Last_NDays

Specifies how many days back the batch should check for pending reminders.


Configure Reminder Settings on the Document Template

For a New Document Template
  1. Navigate to the document template creation page.

  2. Complete the template configuration.

  3. At Reminder Configurations, enable email reminders for signers.

  4. Select the reminder email template.

  5. Save the document template.

Screenshot 2025-04-11 at 5.27.02 PM.png

Click here to learn how to create a document template

For an Existing Document Template
  1. Go to the Document Templates tab.

  2. Open the required document template.

  3. Go to the Details tab.

  4. Select the reminder email template.

  5. Click Save Changes.

Screenshot 2025-04-11 at 5.46.39 PM.png

Run the Reminder Batch

The reminder batch can be executed from the Developer Console.

  1. Open Developer Console.

  2. Select Debug → Open Execute Anonymous Window.

  3. Enter the following code:

Integer iBatchSize = 1;
docgen_esign.BatchSendReminderEmail oBatch =
    new docgen_esign.BatchSendReminderEmail();

Database.executeBatch(oBatch, iBatchSize);
  1. Click Execute.

  2. The batch will process eligible records and send reminder emails to signers whose signing is still pending.

Note: The Reminder_Batch_Size setting should be configured according to your organization's processing requirements.


Automate the Batch Execution

To run reminders automatically, schedule the batch execution according to your organization's required reminder frequency, such as every 24 or 48 hours.

The batch uses the configured reminder settings to identify eligible pending documents and send reminder emails.