htmldocusignapidocusign-sdk

Inject Data into DocuSign Envelope Completed Notification


I want to enhance the text in the notification that goes to the sender after completed envelope. I have simple envelope with only one signer. I am using the "captive signing" approach and the Java SDK to prepare the envelope itself (if that matters).

The goal is to have the signer's name into the notification body.

I tried to override the default SenderEnvelopeComplete_HtmlBody template and to add [[Data:SignerName]] or [[Data:SignerEmail]] but they always output to empty. Could it be that they are not available in the context at that point and is there a way to have at least one of them into that notification?


Solution

  • RecipientEnvelopeComplete_HtmlBody is the email sent to recipients (signers) SenderEnvelopeComplete_HtmlBody is the email sent to the sender of the envelope, the user that either sent it from the web or the auth user logged in to obtain a token for API calls.

    The [[Data:SignerName]] and [[Data:SignerEmail]] elements can only be used with RecipientEnvelopeComplete_HtmlBody which is in the context of a signer/recipient.

    The reason is that you can have multiple signers, so which one do you mean when you send an email to the sender?