For In Person Signer type, the Recipient Signer Name cannot be blank

大城市里の小女人 提交于 2019-12-12 03:50:20

问题


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}',

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
  }
]

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).


回答1:


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.

For example:

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

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



来源:https://stackoverflow.com/questions/38926377/for-in-person-signer-type-the-recipient-signer-name-cannot-be-blank

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!