docusign-esign-node-client icon indicating copy to clipboard operation
docusign-esign-node-client copied to clipboard

EnvelopesApi.updateRecipients does not update signer emailNotification

Open NguyenHoaTBD opened this issue 4 years ago • 3 comments

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!

NguyenHoaTBD avatar Sep 28 '21 06:09 NguyenHoaTBD

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!

HobbyProjects avatar Oct 05 '21 22:10 HobbyProjects

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

NguyenHoaTBD avatar Oct 07 '21 04:10 NguyenHoaTBD

If you can reach out to our Stackoverflow regarding your specific issue on emailNotification. https://stackoverflow.com/questions/tagged/docusignapi

HobbyProjects avatar Oct 07 '21 15:10 HobbyProjects