对于“亲自签名者”类型,“收件人签名者名称”不能为空 [英] For In Person Signer type, the Recipient Signer Name cannot be blank

查看:193
本文介绍了对于“亲自签名者”类型,“收件人签名者名称”不能为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从模板实例化信封时,突然收到此错误消息:

I'm suddenly getting this error message when I try to instantiate an envelope from a template:

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的代码:

This is the code I'm using to create 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));

从该控制台日志中,我得到:

From that console log, I get:

[
  {
    "email": "eng@residenetwork.com",
    "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": "eng@residenetwork.com",
    "roleName": "client1",
    "name": "Reside Network",
    "signingGroupId": null,
    "inPersonSignerName": "Reside Network",
    "clientUserId": "client1",
    "embeddedRecipientStartURL": null,
    "defaultRecipient": "true",
    "accessCode": null,
    "routingOrder": null,
    "emailNotification": null,
    "tabs": null
  }
]

在这些对象中,inPersonSignerName设置为 Reside Network。我不明白为什么会出现此错误或抱怨什么。

In these objects, inPersonSignerName is set to "Reside Network". I don't understand why this error is appearing or what it is complaining about.

我们的代码未更改(尽管我们帐户中的某些设置可能已更改)。

Our code has not changed (though its possible some setting in our account has).

推荐答案

对于 inPersonSigners ,托管签名的用户的名称和电子邮件地址是必填项,并且签名者的姓名是必需的,而其电子邮件是可选的。

For inPersonSigners the name and email of the user hosting the signing are required, and the name of the signer is required whereas their email is optional.

例如:

"inPersonSigners": [{
    "hostEmail": "john.doe@company.com",
    "hostName": "John Doe",
    "autoNavigation": true,
    "defaultRecipient": false,
    "signInEachLocation": false,
    "signerEmail": "optional_signer_email",
    "signerName": "Sally Doe"
}],

用于inPersonSigner的API文档:
https://docs.docusign.com/esign/restapi/Envelopes/EnvelopeRecipients/#inPerson

API Docs for inPersonSigner: https://docs.docusign.com/esign/restapi/Envelopes/EnvelopeRecipients/#inPerson

这篇关于对于“亲自签名者”类型,“收件人签名者名称”不能为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆