EnvelopesApi.updateRecipients does not update signer emailNotification
EnvelopesApi.updateRecipients does not update signer emailNotification in demo site. The Envelope has 2 signers, signer 1 has signed, and I'm updating signer 2. My signer:
{ signers: [ { accessCode: "197996", email: "[email protected]", emailNotification: { emailBody: "message signer 2", emailSubject: "emailSubject", }, firstName: "firstname", lastName: "lastname", name: "name", recipientId: "30000", routingOrder: "30000", suppressEmails: "false", tabs: { signHereTabs: [ { documentId: "6", pageNumber: "1", recipientId: "30000", tabLabel: "署名欄", xPosition: "350", yPosition: "720", }, ], }, }, ], }
Maybe this is Api issue, can you please take a look. Thank!
Hello and thank you for reporting this issue. How are you exactly calling the API?
A slight workaround for now is to create a dict type and assign your new recipients type to it before calling UpdateRecipients - like so:
`let cc = docusign.CarbonCopy.constructFromObject({ email : '[email protected]', name : 'John Doe', deliveryMethod : 'email', recipientId : '112233' })
let recipients = docusign.Recipients.constructFromObject({
signers : [cc],
});
console.log(JSON.stringify(recipients));
return envelopesApi.updateRecipients(account_id, envelope_id, {recipients: recipients}).then(() => {
console.log('The recipients was updated');
}).catch((e) => {
console.log(e)
})`
Please notice {recipients: recipients} in envelopesApi.updateRecipients(account_id, envelope_id, {recipients: recipients}.
Hope this helps. Thanks!
Thank you! When create signer, i set signer 2 emailNotification = {emailSubject: '', emailBody: ''}, then update work fine. Maybe create signer has emailNotification = undefined will can't update
If you can reach out to our Stackoverflow regarding your specific issue on emailNotification. https://stackoverflow.com/questions/tagged/docusignapi