0
我突然收到此錯誤消息時,我嘗試從模板實例化一個信封:對於在個人簽名者類型,收件人簽名者名稱不能爲空
text: '{\r\n "errorCode": "IN_PERSON_SIGNER_NAME_CANNOT_BE_BLANK",\r\n "message": "For In Person Signer type, the Recipient Signer Name cannot be blank."\r\n}',
這是我使用的代碼創建TemplateRoles:
const tRole = new docusign.TemplateRole();
tRole.setRoleName(templateRoleName);
tRole.setName(signerName);
tRole.setEmail(signerEmail);
tRole.setInPersonSignerName(signerName);
tRole.setDefaultRecipient('true');
tRole.setClientUserId('agent');
templateRolesList.push(tRole);
// Create a tempalte role for each client
// TODO: Set correct user data where appropriate instead of test data
let count = 1;
forEach(opts.contacts,() => {
const clientRole = new docusign.TemplateRole();
clientRole.setRoleName(`client${count}`);
clientRole.setName(signerName);
clientRole.setEmail(signerEmail);
clientRole.setInPersonSignerName(signerName);
clientRole.setDefaultRecipient('true');
clientRole.setClientUserId(`client${count}`);
templateRolesList.push(clientRole);
count++;
});
console.log('templateRolesList', JSON.stringify(templateRolesList));
從這個控制檯日誌,我得到:
[
{
"email": "[email protected]",
"roleName": "agent",
"name": "Reside Network",
"signingGroupId": null,
"inPersonSignerName": "Reside Network",
"clientUserId": "agent",
"embeddedRecipientStartURL": null,
"defaultRecipient": "true",
"accessCode": null,
"routingOrder": null,
"emailNotification": null,
"tabs": null
},
{
"email": "[email protected]",
"roleName": "client1",
"name": "Reside Network",
"signingGroupId": null,
"inPersonSignerName": "Reside Network",
"clientUserId": "client1",
"embeddedRecipientStartURL": null,
"defaultRecipient": "true",
"accessCode": null,
"routingOrder": null,
"emailNotification": null,
"tabs": null
}
]
在這些對象中, PersonSignerName設置爲「駐留網絡」。我不明白爲什麼這個錯誤出現或者它抱怨什麼。
我們的代碼沒有改變(儘管它可能在我們的賬戶中有一些設置)。
發送這一點,並得到同樣的錯誤:{ 「電子郵件」:空, 「角色名」: 「客戶端1」, 「名」 :null,「signedGroupId」:null,「inPersonSignerName」:「Chris Dzoba」,「clientUserId」:「client1」,「embeddedRecipientStartURL」:null,「defaultRecipient」:false,「accessCode」:null,「routingOrder」 「emailNotification」:null,「tabs」:null,「hostEmail」:「[email protected]」,「hostName」:「駐留網絡」,「signerName」:「Chris Dzoba」,「autonavigation」:true} – crdzoba