Igor Kochetkov
Igor Kochetkov

Reputation: 5

DocuSign Resend Envelope to User with Subject correction

I made custom reminders for my integration that resends the envelope to user. This is work for me:

PUT https://{{env}}.docusign.net/restapi/{{version}}/accounts/{{acctId}}/envelopes/{{envelopeId}}/recipients?resend_envelope=true
{
  "signers": [
   {
      "recipientId": "3",
      "name": "Jane Doe",
      "email": "[email protected]"
    }
  ]
}

But I want to send different subject to include "Reminder:"+old subject, how can I modify the emailSubject for specific recipient (which I'm passing to Body), I tried:

{
  "signers": [
   {
      "recipientId": "1",
      "name": "Igor",
      "email": "[email protected]",
      "emailNotification":
         {
           "emailSubject": "ReMiNdEr"
         }
    }
  ]
}

But this did not work. Any suggestions?

Upvotes: 0

Views: 95

Answers (2)

Igor Kochetkov
Igor Kochetkov

Reputation: 5

So, to resend for recipient envelope with new Subject I need first to determine this property in my POST request, and then I can use PUT with following to update subject, body. If I will not determine this in my 1st POST request, this PUT will not work!

"emailNotification": { "emailBody": "NEWSUBJ 44 5", "emailSubject": "NEWNEWNEW 44 5" },

Upvotes: 0

Inbar Gazit
Inbar Gazit

Reputation: 14050

You will need to do a POST to the recipients endpoint to update the recipientEmailNotification for the specific recipient with the emailSubject and emailBody you wish.

See reference information

See blog post with code examples in six languages (using the various DocuSign SDKs)

Upvotes: 1

Related Questions