Adds EnvelopeCreateResult inner DTO and createEnvelope(Id, String, String)
to DocusignESignatureService. Option A (template-based): POSTs to
/v2.1/accounts/{accountId}/envelopes with templateId, templateRoles
(Signer), and status=sent. Guards blank templateId and blank appraiser
email; catches all exceptions and wraps in result. Named credential
sourced from CLM_Account_Setting__mdt per ADR-002.
Agent: claude-sonnet-4-6
Tests: 8/8 passing | N/A (no new test methods — Task 3 covers test coverage)
Tests-Added: 0
TypeScript: N/A (Apex project)
|
||
|---|---|---|
| artifacts/doc_inspect | ||
| docs | ||
| force-app/main/default | ||
| manifest | ||
| scripts | ||
| .gitignore | ||
| AGENT.md | ||
| DECISIONS.md | ||
| IMPLEMENTATION_PLAN.md | ||
| PROJECT-SPEC.md | ||
| ralph-loop.sh | ||
| sfdx-project.json | ||
docs/README.md
Appraiser Review Letter Generator (Salesforce + DocuSign CLM)
Overview
This repo contains a Salesforce metadata project for generating appraiser review letters from Appraiser_Case__c data in DocuSign CLM, while also providing a growing proof-of-concept surface for DocuSign eSignature API workflows.
Current status
- The repo is standardized on the XML CLM merge path built around
AppraiserCasePayloadBuilder+CLMDocGenCallout. Appraiser_Case_Deficiency__cis the canonical child deficiency object used by both the UI and document generation.- Account-based DocuSign configuration lives in
CLM_Account_Setting__mdt. - The current Salesforce UI includes:
- the
Generate Review Letterquick action for CLM doc gen - the
Docusign eSignaturerecord tab for eSignature browsing
- the
- CLM generation, task tracking, file attachment, and eSignature template/envelope browsing are all implemented.
Read this first
- PRODUCT_SPEC.md: current product definition and architecture
- CURRENT_STATUS.md: implementation snapshot and current recommendations
- SALESFORCE_SETUP.md: metadata and org setup notes
- CLM_INTEGRATION.md: CLM integration details
- requirements.md and design.md: condensed companion docs aligned to the product spec
Documentation note
Older planning docs still exist, but PRODUCT_SPEC.md, CURRENT_STATUS.md, SALESFORCE_SETUP.md, and the source code are now the best reflection of the project.
Last updated: 2026-04-09