Completion Certification

Configuration - Certificate of Completion

Following installation, the module requires specific configuration within DRTE and Salesforce Setup.


Step 1: Create the Certificate of Completion Document Template





Import the JSON Template:


Return to the newly created Document Template record.



Upon successful import, refresh the page. The pre-defined document sections will now be visible.




Customize Placeholders: Review each section and modify the static text placeholders as necessary to meet organizational branding and requirements.


Step 2: Configure DRTE Allowed Objects

This step ensures the DRTE query engine can access the relevant e-signature log data for certificate generation.

  1. In Setup, search for Custom Metadata Types.
  2. Locate and manage the records for the DRTE Allowed Object custom metadata type.



Create two new records to include the following objects:



Step 3: Configure DRTE Settings - Custom Setting



Populate the following fields with the required values:



Step 4: Create and Implement the Generation Action (Manual Way)

An action is required to trigger the flow that generates the COC document on the relevant record page.

  1. In Setup, go to Object Manager and select the object on which your E-Signature workflow is enabled (e.g., Opportunity, Contract).
  2. Navigate to Buttons, Links, and Actions.
  3. Create a New Action:

Add Action to Page Layout:

Add the newly created Action to the Salesforce Mobile and Lightning Actions section of the record's Highlight Panel.



Configuration - Automatic Signed Document (w/CoC) Creation after Signature


Step 1: Create a new Trigger Flow on E Signature Request Object. 

Trigger the Flow when record is updated, Set Entry Condition “isSigned” equal to “TRUE”. Only When Record Is Updated to Meet the conditional requirements



Step 2: Query Related E Signature Log (Child Record)

Use Get Records element and query as shown in the screen shot below




Step 3: Create a packaged platform event record.

To trigger the functionality to generate Signed Document with CoC and attach to related document record.

(Imp: You may set Trigger Send Email equal to True, to send automatic email to related contacts/signees with signed document)


Step 4: Configure the scheduled path for this functionality.

This object holds critical functionality for e-signature request generation and handling the response after signature. To make sure your custom code doesn’t hinder e-signature native functionality, move the logic to Async Processing (as scheduled path shown below)




Manual- Certificate of Completion



Once configured, the Certificate of Completion generation process is straightforward for the end-user.





Troubleshooting - Certificate of Completion

Issue

Potential Cause

Resolution

Action button is missing.

Action not added to the Page Layout.

Ensure the action is added to the Lightning Actions in the Highlight Panel.

Certificate data is blank/incomplete.

Objects not added to DRTE Allowed Objects.

Verify that pscdnyrichtext__ESignature_Log__c and pscdnyrichtext__ESignature_Request__c have been correctly added to DRTE Allowed Objects 

Error upon button click.

Incorrect Template ID in DRTE Settings.

Confirm the 18-digit SFDC ID of the Document Template is accurately placed in the CertificateOfCompletionTemplateId field.


Redirecting you to the article... Click here if you are not redirected automatically.