feat: prefix envelope subject with 'Docusign: '

This commit is contained in:
Paul Huliganga 2026-03-24 11:10:56 -04:00
parent 06e2a14de5
commit a3ebafe506
1 changed files with 2 additions and 1 deletions

View File

@ -225,7 +225,8 @@ global with sharing class DocusignCompositeEnvelopeBuilder {
bodyIdsAdded.add(templateId); bodyIdsAdded.add(templateId);
} }
} }
String envelopeSubject = combinedName; // Prefix the envelope subject so recipients see the source immediately
String envelopeSubject = 'Docusign: ' + combinedName;
// Truncate subject to 100 characters maximum as required by Docusign // Truncate subject to 100 characters maximum as required by Docusign
if (envelopeSubject.length() > 100) { if (envelopeSubject.length() > 100) {
envelopeSubject = envelopeSubject.left(97) + '...'; envelopeSubject = envelopeSubject.left(97) + '...';