Hello,
I have used the Apex Toolkit to define the writeback of my envelope.
The docs are correctly attached to the case and the status on the case is correctly updated.
However, the doc title is not updated as specified in the writeback. It retains the original name. I need to add ‘_completed’ to the initial title when it is signed.
Anyone encountered this issue or has an idea how to resolve this? Thanks
Code Snippet :
myEnvelope.withOptions(new dfsle.Envelope.Options(
false,
new dfsle.Document.WriteBack(caseRecord.Id, ‘Signed Contracts’, false, true),
new Map<String, Map<String, Object>> {
dfsle.Envelope.STATUS_COMPLETED => new Map<String, Object> {
'Case.Status' => 'Docs received'
}
},
new Map<String, Map<String, Object>>()
));