Salesforce 进行嵌入式签名API调用时,未知\u信封\u收件人

Salesforce 进行嵌入式签名API调用时,未知\u信封\u收件人,salesforce,apex,docusignapi,Salesforce,Apex,Docusignapi,我正在对Docusign进行一个API调用,试图获取一个链接,以便收件人在不必进入电子邮件的情况下签署文档。我在APEX的一个视觉力页面上这样做 我正在向端点发送以下请求: 我的要求是: { "authenticationMethod": "email", "email": "test@outlook.com", "returnUrl": "www.docusign.net", "userName": "LB -1 Demo 2" } { "signers": [

我正在对Docusign进行一个API调用,试图获取一个链接,以便收件人在不必进入电子邮件的情况下签署文档。我在APEX的一个视觉力页面上这样做

我正在向端点发送以下请求:

我的要求是:

{
  "authenticationMethod": "email",
  "email": "test@outlook.com",
  "returnUrl": "www.docusign.net",
  "userName": "LB -1 Demo 2"
}
{
  "signers": [
    {
      "name": "LB -1 Demo 2",
      "email": "test@outlook.com",
      "recipientId": "1",
      "requireIdLookup": "false",
      "userId": "05b324da-8ebb-4d4b-a58b-0ef019530214",
      "routingOrder": "1",
      "roleName": "Signer 1",
      "status": "completed",
      "signedDateTime": "2014-06-24T11:30:09.4630000Z",
      "deliveredDateTime": "2014-06-24T11:29:58.5100000Z"
    }
  ],
  "agents": [],
  "editors": [],
  "intermediaries": [],
  "carbonCopies": [],
  "certifiedDeliveries": [],
  "inPersonSigners": [],
  "recipientCount": "1",
  "currentRoutingOrder": "1"
}
我得到的答复是:

{
  "errorCode": "UNKNOWN_ENVELOPE_RECIPIENT",
  "message": "The recipient you have identified is not a valid recipient of the specified       envelope. Envelope recipient could not be determined. 'clientUserId', 'email', or 'userName' in request and envelope may not match."
}
信封请求是:

{
  "authenticationMethod": "email",
  "email": "test@outlook.com",
  "returnUrl": "www.docusign.net",
  "userName": "LB -1 Demo 2"
}
{
  "signers": [
    {
      "name": "LB -1 Demo 2",
      "email": "test@outlook.com",
      "recipientId": "1",
      "requireIdLookup": "false",
      "userId": "05b324da-8ebb-4d4b-a58b-0ef019530214",
      "routingOrder": "1",
      "roleName": "Signer 1",
      "status": "completed",
      "signedDateTime": "2014-06-24T11:30:09.4630000Z",
      "deliveredDateTime": "2014-06-24T11:29:58.5100000Z"
    }
  ],
  "agents": [],
  "editors": [],
  "intermediaries": [],
  "carbonCopies": [],
  "certifiedDeliveries": [],
  "inPersonSigners": [],
  "recipientCount": "1",
  "currentRoutingOrder": "1"
}

收件人信息似乎与我的请求匹配,但API调用仍不起作用。这是因为我缺少一个clientUserId,这是am嵌入式签名调用所必需的吗?如果是这样,我是否需要创建信封和收件人,然后才能拨打嵌入的签名者电话?

此问题是重复的,请在发布新问题之前搜索DocuSignApi标记以查找现有答案。正如安德鲁所提到的,这是这个问题的重复:

您需要为任何想要成为嵌入式收件人的收件人设置clientUserId属性。使用什么值取决于您,但请确保在请求签名URL令牌时包含相同的精确值

在docusigndeveloper中心的Features->Embedding下也有详细的解释


您的可能副本是正确的,您需要一个clientUserId,并且您只能为具有clientUserId的收件人获取收件人令牌。此答案中的更多信息:stackoverflow.com/a/17558969/1612605