我正在尝试使用复合模板发送信封以获取 Salesforce 的签名。我在请求中引用了 3 个服务器模板。我可以毫无问题地将三个服务器模板发送过来进行签名。最近,我们需要发送另一个文档,其中包含包含来自 salesforce 的数据的表格。该表不是静态的,并且会根据 salesforce 中可用行的数量而随时变化。
因此,我决定利用“文档”对象中的“htmlDefinition”属性来发送我从 Salesforce 准备的 html 标记。
当我发送请求时,它不会加载我的 htmlDefinition 文档并显示“您没有文档”。请在下面找到我的请求文件。感谢您的帮助,因为我已经这样做了近一周了! :(
我尝试过的:我可以使用常规发送方法发送 htmlDefinition 文档,但它不适用于复合模板
{
"status": null,
"enforceSignerVisibility": "true",
"emailSubject": "EMAIL_SUBJECT",
"emailBlurb": "EMAIL_BLURB",
"compositeTemplates": [
{
"serverTemplates": null,<**NOT PASSING ANY serverTemplates, I want the html document below to be rendered instead**>
"inlineTemplates": [
{
"sequence": "1",
"recipients": {
"signers": [
{
"tabs": {
"textTabs": null,
"signHereTabs": null,
"fullNameTabs": null,
"dateSignedTabs": null
},
"signerRole": "Signer",
"routingOrder": "1",
"roleName": null,
"recipientId": "1",
"name": "PuppySaturation",
"excludedDocuments": null,
"email": "[email protected]"
}
]
},
"customFields": null
}
],
"document": {
"name": "Contract",
"htmlDefinition": {
"source": "<html>HTML markup to create a table data. This table data is dynamically generated on salesforce apex side, I verified the markup, It was clean and had no issues in it. The markup also has ds-signature data-ds-role='Signer' to match the signer role of 1st recipient</html>"
},
"documentId": "1",
"documentBase64": null<**NOT PASSING base64, I want html source to render. Could this be the issue?**>
},
"compositeTemplateId": "1"
}
]
}
您的演示帐户可能没有启用响应式签名 API。联系 DocuSign 的开发人员支持 - https://support.docusign.com/s/contactSupport - 底部表格。向他们提供您的演示帐户 ID,并告诉他们您需要启用“用于响应式签名的智能部分/API”。