Docusignapi Docusign电子邮件似乎总是有相同的主题

Docusignapi Docusign电子邮件似乎总是有相同的主题,docusignapi,Docusignapi,这是通过docusignapi实现的。以下是信封的定义: { "eventNotification": { "requireAcknowledgment": "true", "envelopeEvents": [ { "envelopeEventStatusCode": "Delivered" }, { "envelopeEventStatusCode": "Completed" },

这是通过docusignapi实现的。以下是信封的定义:

 {
  "eventNotification": {
    "requireAcknowledgment": "true",
    "envelopeEvents": [
      {
        "envelopeEventStatusCode": "Delivered"
      },
      {
        "envelopeEventStatusCode": "Completed"
      },
      {
        "envelopeEventStatusCode": "Declined"
      },
      {
        "envelopeEventStatusCode": "Voided"
      },
      {
        "envelopeEventStatusCode": "Sent"
      }
    ],
    "useSoapInterface": "false",
    "includeCertificateWithSoap": "false",
    "signMessageWithX509Cert": "false",
    "includeDocuments": "false",
    "includeEnvelopeVoidReason": "false",
    "includeTimeZone": "true",
    "includeSenderAccountAsCustomField": "true",
    "includeDocumentFields": "true",
    "includeCertificateOfCompletion": "false"
  },
  "compositeTemplates": [
    {
      "serverTemplates": [
        {
          "sequence": "1",
          "templateId": "c110d14a-3690-4ed1-921d-a7bef9524ed6"
        }
      ],
      "inlineTemplates": [
        {
          "sequence": "2",
          "recipients": {
            "signers": [
              {
                "name": "Kathy Lori",
                "email": "kathylori@xxx.com",
                "recipientId": "1",
                "accessCode": "12345",
                "customFields": [],
                "routingOrder": "1",
                "note": "",
                "roleName": "##Buyer1"
              }
            ],
            "certifiedDeliveries": []
          },
          "customFields": {
            "textCustomFields": [
              {
                "name": "EnvelopeInfo",
                "value": "my data"
              }
            ]
          }
        }
      ],
      "document": {
        "documentId": "1",
        "name": "c:\three of the test.docx",
        "fileExtension": ".docx",
        "documentFields": [],
        "documentBase64": [bytearray]
      }
    }
  ],
  "status": "sent",
  "emailSubject": "This is the new subject"
}

主题仍然显示为“请记录签名:在此签名”。我本以为设置主题可以解决这个问题,但我肯定遗漏了什么。

您很可能在服务器模板中配置了每个收件人的电子邮件主题。在这种情况下,将忽略在postEnvelope请求的根级别指定的emailSubject

您可以通过使用服务器模板Id进行呼叫来确认这一点。它将如下所示。专门查找recipients.signers.emailNotification属性。为了简单起见,我删除了一些属性

要覆盖服务器模板中指定的每收件人电子邮件主题,请在inlineTemplate中指定emailNotification属性

 {
   "compositeTemplates": [
     {
       "serverTemplates": [
         {
           "sequence": "1",
           "templateId": "c110d14a-3690-4ed1-921d-a7bef9524ed6"
         }
       ],
       "inlineTemplates": [
         {
           "sequence": "2",
           "recipients": {
             "signers": [
               {
                 "name": "Kathy Lori",
                 "email": "kathylori@xxx.com",
                 "recipientId": "1",
                 "accessCode": "12345"
                 "routingOrder": "1",
                 "roleName": "##Buyer1",
                "emailNotification": {
                          "emailSubject": "This is email subject to Buyer1",
                          "emailBody": "",
                          "supportedLanguage": "en"
                        },
               }
             ],
           }
         }
       ],
       "document": { }
     }
   ],
   "status": "sent",
 }
 {
   "compositeTemplates": [
     {
       "serverTemplates": [
         {
           "sequence": "1",
           "templateId": "c110d14a-3690-4ed1-921d-a7bef9524ed6"
         }
       ],
       "inlineTemplates": [
         {
           "sequence": "2",
           "recipients": {
             "signers": [
               {
                 "name": "Kathy Lori",
                 "email": "kathylori@xxx.com",
                 "recipientId": "1",
                 "accessCode": "12345"
                 "routingOrder": "1",
                 "roleName": "##Buyer1",
                "emailNotification": {
                          "emailSubject": "This is email subject to Buyer1",
                          "emailBody": "",
                          "supportedLanguage": "en"
                        },
               }
             ],
           }
         }
       ],
       "document": { }
     }
   ],
   "status": "sent",
 }